#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" int line = 16; static const char *TAG = "main"; void app_main(void) { led_matrix_init(); uint8_t color[line][64]; int i, j, k = 0; for (i = 0; i < line; i++) for (j = 0; j < 64; j++) { color[i][j] = k++; k = k % 256; } led_matrix_fill_rectangle(0, 0, line, 64, color); led_matrix_set_brightness(0); int brightness = 0; while (1) { // led_matrix_set_brightness(brightness); // brightness = (brightness + 100) % 1900; vTaskDelay(pdMS_TO_TICKS(100)); } }