ili9481: Replace ESP_LOG with LVGL logging
This commit is contained in:
parent
f7b34f8a3e
commit
4b01564076
|
@ -8,9 +8,7 @@
|
||||||
#include "ili9481.h"
|
#include "ili9481.h"
|
||||||
#include "disp_spi.h"
|
#include "disp_spi.h"
|
||||||
#include "driver/gpio.h"
|
#include "driver/gpio.h"
|
||||||
#include "esp_log.h"
|
|
||||||
#include "esp_heap_caps.h"
|
#include "esp_heap_caps.h"
|
||||||
|
|
||||||
#include "freertos/FreeRTOS.h"
|
#include "freertos/FreeRTOS.h"
|
||||||
#include "freertos/task.h"
|
#include "freertos/task.h"
|
||||||
|
|
||||||
|
@ -88,7 +86,7 @@ void ili9481_init(void)
|
||||||
vTaskDelay(100 / portTICK_RATE_MS);
|
vTaskDelay(100 / portTICK_RATE_MS);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ESP_LOGI(TAG, "ILI9481 initialization.");
|
LV_LOG_INFO("TAG" ": Initialization.");
|
||||||
|
|
||||||
// Exit sleep
|
// Exit sleep
|
||||||
ili9481_send_cmd(0x01); /* Software reset */
|
ili9481_send_cmd(0x01); /* Software reset */
|
||||||
|
@ -196,7 +194,7 @@ static void ili9481_set_orientation(uint8_t orientation)
|
||||||
"PORTRAIT", "PORTRAIT_INVERTED", "LANDSCAPE", "LANDSCAPE_INVERTED"
|
"PORTRAIT", "PORTRAIT_INVERTED", "LANDSCAPE", "LANDSCAPE_INVERTED"
|
||||||
};
|
};
|
||||||
|
|
||||||
ESP_LOGI(TAG, "Display orientation: %s", orientation_str[orientation]);
|
LV_LOG_INFO("TAG" ": Display orientation: %s", orientation_str[orientation]);
|
||||||
|
|
||||||
uint8_t data[] = {0x48, 0x4B, 0x28, 0x2B};
|
uint8_t data[] = {0x48, 0x4B, 0x28, 0x2B};
|
||||||
ili9481_send_cmd(ILI9481_CMD_MEMORY_ACCESS_CONTROL);
|
ili9481_send_cmd(ILI9481_CMD_MEMORY_ACCESS_CONTROL);
|
||||||
|
|
Loading…
Reference in a new issue