|
ESP-IDF Firmware
Firmware architecture and call graph
|
#include <stdio.h>#include "esp_log.h"#include "ssd1306.h"#include "bsp/esp-bsp.h"#include "esp_dsp.h"#include "cube_matrix.h"#include "esp_logo.h"#include "esp_text.h"#include "graphics_support.h"#include "image_to_3d_matrix.h"Go to the source code of this file.
Functions | |
| void | app_main () |
| static void | init_3d_matrix_struct (image_3d_matrix_t *image) |
| Initialize 3d image structure. | |
| static void | app_ssd1306_init (void) |
| Initialize display. | |
| static void | display_3d_image (dspm::Mat projected_image) |
| Display a 3d image. | |
| static void | dispaly_esp_text (void) |
| Display ESPRESSIF text. | |
| static void | draw_3d_image_task (void *arg) |
| RTOS task to draw a 3d image. | |
Variables | |
| static ssd1306_handle_t | ssd1306_dev = NULL |
| static bool | button_pressed = true |
| dspm::Mat | perspective_matrix (MATRIX_SIZE, MATRIX_SIZE) |
| void app_main | ( | void | ) |
Definition at line 203 of file applications/azure_board_apps/apps/3d_graphics/main/3d_graphics_demo.cpp.
References app_ssd1306_init(), bsp_i2c_init(), button_pressed, dispaly_esp_text(), draw_3d_image_task(), ekf13, image, init_3d_matrix_struct(), init_perspective_matrix(), and perspective_matrix.
|
static |
Initialize display.
Definition at line 53 of file applications/azure_board_apps/apps/3d_graphics/main/3d_graphics_demo.cpp.
References ssd1306_dev.
Referenced by app_main().
|
static |
Display ESPRESSIF text.
To demonstrate usage of the translation and scaling matrices
Definition at line 96 of file applications/azure_board_apps/apps/3d_graphics/main/3d_graphics_demo.cpp.
References dspm::Mat::eye(), image_3d_array_esp_text, image_bmp_array_esp_text, image_3d_matrix_s::matrix, image_3d_matrix_s::matrix_len, MATRIX_SIZE, dspm::Mat::rows, ssd1306_dev, SSD1606_X_CENTER, SSD1606_Y_CENTER, update_scaling_matrix(), and update_translation_matrix().
Referenced by app_main().
|
static |
Display a 3d image.
If the object is the 3d cube, connect the projected cube points by lines and display the lines For any other 3d object lit pixels on the display from provided XY coordinates
| projected_image | 3d matrix from Mat class after projection |
Definition at line 68 of file applications/azure_board_apps/apps/3d_graphics/main/3d_graphics_demo.cpp.
References cube_dict_line_begin, cube_dict_line_end, CUBE_EDGES, OBJECT_3D_CUBE, dspm::Mat::rows, and ssd1306_dev.
Referenced by draw_3d_image_task().
|
static |
RTOS task to draw a 3d image.
Updates 3d matrices, prepares the final 3d matrix to be displayed on the display
| arg | pointer to RTOS task arguments, 3d image structure in this case |
Definition at line 157 of file applications/azure_board_apps/apps/3d_graphics/main/3d_graphics_demo.cpp.
References button_pressed, display_3d_image(), dspm::Mat::eye(), image, MATRIX_SIZE, OBJECT_3D_CUBE, perspective_matrix, SSD1606_X_CENTER, SSD1606_Y_CENTER, update_rotation_matrix(), and update_translation_matrix().
Referenced by app_main().
|
static |
Initialize 3d image structure.
Assigns a 3d image to be displayed to the 3d image structure based on the Kconfig menu result. The Kconfig menu is operated by a user
| image | 3d image structure |
Definition at line 33 of file applications/azure_board_apps/apps/3d_graphics/main/3d_graphics_demo.cpp.
References cube_vectors_3d, image, image_3d_matrix_esp_logo, image_to_3d_matrix_custom, and MATRIX_SIZE.
Referenced by app_main().
|
static |
Definition at line 19 of file applications/azure_board_apps/apps/3d_graphics/main/3d_graphics_demo.cpp.
Referenced by __attribute__(), app_main(), draw_3d_image_task(), draw_3d_image_task(), draw_3d_image_task(), and draw_3d_image_task().
| dspm::Mat perspective_matrix(MATRIX_SIZE, MATRIX_SIZE) | ( | MATRIX_SIZE | , |
| MATRIX_SIZE | ) |
Referenced by app_main(), draw_3d_image(), draw_3d_image(), draw_3d_image(), draw_3d_image(), draw_3d_image_task(), draw_3d_image_task(), draw_3d_image_task(), draw_3d_image_task(), draw_3d_image_task(), draw_3d_image_task(), draw_3d_image_task(), draw_3d_image_task(), get_pressure_task(), get_pressure_task(), get_pressure_task(), get_pressure_task(), kalman_filter_task(), kalman_filter_task(), kalman_filter_task(), and kalman_filter_task().
|
static |
Definition at line 18 of file applications/azure_board_apps/apps/3d_graphics/main/3d_graphics_demo.cpp.
Referenced by app_ssd1306_init(), app_ssd1306_init(), app_ssd1306_init(), app_ssd1306_init(), app_ssd1306_init(), app_ssd1306_init(), app_ssd1306_init(), app_ssd1306_init(), dispaly_esp_text(), dispaly_esp_text(), dispaly_esp_text(), dispaly_esp_text(), display_3d_image(), display_3d_image(), display_3d_image(), display_3d_image(), display_3d_image(), display_3d_image(), display_3d_image(), display_3d_image(), get_initial_pressure(), kalman_filter_calibration(), kalman_filter_calibration(), kalman_filter_calibration(), and kalman_filter_calibration().