#include #include #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_err.h" #include "esp_log.h" #include "esp_check.h" #include "led_matrix.h" void app_main(void) { led_matrix_init(); uint8_t color[10][10]; int i, j, k = 0; for (i = 0; i < 10; i++) for (j = 0; j < 10; j++) color[i][j] = k++; led_matrix_fill_rectangle(10, 10, 20, 20, color); while (1) { vTaskDelay(pdMS_TO_TICKS(1000)); } }