Advertisement
Guest User

Untitled

a guest
May 14th, 2025
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.32 KB | None | 0 0
  1.  
  2. esp32-s3-super-mini.json
  3. {
  4.     "build": {
  5.       "arduino": {
  6.         "ldscript": "esp32s3_out.ld",
  7.         "partitions": "default.csv"
  8.       },
  9.       "core": "esp32",
  10.       "variant": "esp32s3",
  11.       "mcu": "esp32s3",
  12.       "f_cpu": "240000000L",
  13.       "f_flash": "80000000L",
  14.       "flash_mode": "qio",
  15.       "extra_flags": [
  16.         "-DARDUINO_ESP32S3_DEV",
  17.         "-DARDUINO_USB_MODE=1",
  18.         "-DARDUINO_RUNNING_CORE=1",
  19.         "-DARDUINO_EVENT_RUNNING_CORE=1"
  20.       ],
  21.       "hwids": [
  22.         ["0x303A", "0x1001"]
  23.       ]
  24.     },
  25.     "connectivity": ["wifi"],
  26.     "debug": {
  27.       "default_tool": "esp-builtin",
  28.       "onboard_tools": ["esp-builtin"],
  29.       "openocd_target": "esp32s3.cfg"
  30.     },
  31.     "frameworks": ["arduino", "espidf"],
  32.     "name": "Espressif ESP32-S3 Super Mini",
  33.     "vendor": "Espressif",
  34.     "url": "https://www.espboards.dev/esp32/esp32-s3-super-mini/",
  35.     "upload": {
  36.       "flash_size": "4MB",
  37.       "maximum_size": 4194304,
  38.       "maximum_ram_size": 327680,
  39.       "require_upload_port": true,
  40.       "speed": 460800
  41.     }
  42.   }
  43.  
  44.  
  45. #include <Arduino.h>
  46. #include <SPI.h>
  47. #include <Adafruit_NeoPixel.h>
  48. #include <TFT_eSPI.h>
  49.  
  50. // — LED setup —
  51. #define LED_PIN    48
  52. #define NUM_LEDS   1
  53.  
  54. SPIClass hspi(HSPI);
  55. Adafruit_NeoPixel strip(NUM_LEDS, LED_PIN, NEO_GRB + NEO_KHZ800);
  56. TFT_eSPI       tft  = TFT_eSPI();
  57.  
  58. uint16_t hue = 0;
  59.  
  60. void setup() {
  61.   Serial.begin(115200);
  62.  
  63.   // start HSPI for TFT
  64.   hspi.begin(TFT_SCLK, TFT_MISO, TFT_MOSI, TFT_CS);
  65.  
  66.   // init NeoPixel
  67.   strip.begin();
  68.   strip.show();  
  69.  
  70.   // init TFT
  71.   tft.init();
  72. }
  73.  
  74. void loop() {
  75.   // rainbow cycle
  76.   strip.setPixelColor(0, strip.ColorHSV(hue * 256));
  77.   strip.show();
  78.   hue++;          
  79.   delay(20);
  80. }
  81.  
  82.  
  83.  
  84.  
  85. I included the flags from your platformio.ini file as below and it built correctly
  86.  
  87. [platformio]
  88. boards_dir = boards
  89.  
  90. [env:esp32-s3-mini-1]
  91. platform       = [email protected]
  92. board          = esp32-s3-super-mini
  93. framework      = arduino
  94.  
  95.  
  96. ; ------------------------
  97. ; MONITOR
  98. ; ------------------------
  99. monitor_speed = 115200
  100.  
  101. ; -----------------------
  102. ; FLASH / PARTITIONS
  103. ; ------------------------
  104. board_build.flash_mode   = qio
  105. board_build.flash_size   = 4MB
  106. board_build.arduino.memory_type = qio_qspi
  107.  
  108.  
  109. ; ensure the TFT_eSPI library uses HSPI
  110. build_flags    =
  111.     -D USE_HSPI_PORT
  112. ; ------------------------
  113. ; WS2812 LED on GPIO48
  114. ; ------------------------
  115.     -DLED_PIN=48
  116.     -DNUM_LEDS=1
  117.     -Os
  118.     -DLED_OFF_BEAT=17
  119.     -DUSER_SETUP_LOADED=1
  120.     -DST7789_DRIVER=1
  121.     -DCGRAM_OFFSET
  122.     -DTFT_CS=10
  123.     -DTFT_DC=6
  124.     -DTFT_RST=-1
  125.     -DTFT_MOSI=11
  126.     -DTFT_SCLK=12
  127.     -DTFT_MISO=13
  128.     -DTFT_BL=-1
  129.     -DTOUCH_CS=-1
  130.     -DTFT_BACKLIGHT_ON=HIGH
  131.     -DLOAD_GLCD=1
  132.     -DLOAD_FONT2=1
  133.     -DLOAD_FONT4=1
  134.     -DLOAD_FONT6=1
  135.     -DLOAD_FONT7=1
  136.     -DLOAD_FONT8=1
  137.     -DLOAD_GFXFF=1
  138.     -DSMOOTH_FONT=1
  139.     -DSPI_FREQUENCY=40000000
  140.  
  141. lib_deps       =
  142.     ;bodmer/TFT_eSPI @ ^2.3.70
  143.     https://github.com/Bodmer/TFT_eSPI.git
  144.     https://github.com/adafruit/Adafruit_NeoPixel.git
  145.     ;adafruit/Adafruit NeoPixel @ ^1.13.0
  146.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement