### Initialize WiFi Access Point Source: http://www.waveshare.com/wiki/ESP32-S3-Touch-AMOLED-1.43 Sets up the ESP32 as a WiFi access point with a specific SSID and password. ```cpp const char* ssid = "bsp_esp_demo"; const char* password = "waveshare"; WiFi.softAP(ssid,password); ``` -------------------------------- ### Enable Software Screen Rotation Source: http://www.waveshare.com/wiki/ESP32-S3-Touch-AMOLED-1.43 Uncomment the EXAMPLE_Rotate_90 macro in the main file to enable software-based screen rotation. ```cpp #define EXAMPLE_Rotate_90 ``` ```cpp #define EXAMPLE_Rotate_90 ``` -------------------------------- ### Hello World Arduino Sketch Source: http://www.waveshare.com/wiki/ESP32-S3-Touch-AMOLED-1.43 Basic Arduino sketch to initialize serial communication and print a message to the console every two seconds. ```cpp void setup() { // put your setup code here, to run once: Serial.begin(115200); } void loop() { // put your main code here, to run repeatedly: Serial.println("Hello, World!"); delay(2000); } ``` -------------------------------- ### Locate Library Files Source: http://www.waveshare.com/wiki/ESP32-S3-Touch-AMOLED-1.43 Path to the required library files for the ESP32-S3-Touch-AMOLED-1.43 board. ```text ..\ESP32-S3-Touch-AMOLED-1.43-Demo\Arduino\libraries ``` -------------------------------- ### Enable Software Display Rotation Source: http://www.waveshare.com/wiki/ESP32-S3-Touch-AMOLED-1.43 Uncomment this macro in lcd_bsp.c to enable 90-degree software rotation for the display. ```c #define EXAMPLE_Rotate_90 ``` -------------------------------- ### Configure LVGL Memory Settings Source: http://www.waveshare.com/wiki/ESP32-S3-Touch-AMOLED-1.43 Defines color depth and memory allocation strategies for the LVGL library in lvgl_conf.h. ```c /*Color depth: 1 (1 byte per pixel), 8 (RGB332), 16 (RGB565), 32 (ARGB8888)*/ #define LV_COLOR_DEPTH 16//Color depth, a macro definition that must be concerned with porting LVGL #define LV_MEM_CUSTOM 0 #if LV_MEM_CUSTOM == 0 /*Size of the memory available for `lv_mem_alloc()` in bytes (>= 2kB)*/ #define LV_MEM_SIZE (48U * 1024U) /*[bytes]*/ /*Set an address for the memory pool instead of allocating it as a normal array. Can be in external SRAM too.*/ #define LV_MEM_ADR 0 /*0: unused*/ /*Instead of an address give a memory allocator that will be called to get a memory pool for LVGL. E.g. my_malloc*/ #if LV_MEM_ADR == 0 #undef LV_MEM_POOL_INCLUDE #undef LV_MEM_POOL_ALLOC #endif #else /*LV_MEM_CUSTOM*/ #define LV_MEM_CUSTOM_INCLUDE /*Header for the dynamic memory function*/ #define LV_MEM_CUSTOM_ALLOC malloc #define LV_MEM_CUSTOM_FREE free #define LV_MEM_CUSTOM_REALLOC realloc #endif /*LV_MEM_CUSTOM*/ //The above section is mainly for LVGL memory allocation, //which defaults to lv_mem_alloc() versus lv_mem_free(). ``` -------------------------------- ### Configure SD Card Communication Mode Source: http://www.waveshare.com/wiki/ESP32-S3-Touch-AMOLED-1.43 Defines the communication protocol for the TF card. Modify the macro definition in sd_card_bsp.cpp to switch between SDMMC and SPI. ```cpp #define SD_Read_Mode USER_SPI ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.