Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esp32-s3-super-mini.json
- {
- "build": {
- "arduino": {
- "ldscript": "esp32s3_out.ld",
- "partitions": "default.csv"
- },
- "core": "esp32",
- "variant": "esp32s3",
- "mcu": "esp32s3",
- "f_cpu": "240000000L",
- "f_flash": "80000000L",
- "flash_mode": "qio",
- "extra_flags": [
- "-DARDUINO_ESP32S3_DEV",
- "-DARDUINO_USB_MODE=1",
- "-DARDUINO_RUNNING_CORE=1",
- "-DARDUINO_EVENT_RUNNING_CORE=1"
- ],
- "hwids": [
- ["0x303A", "0x1001"]
- ]
- },
- "connectivity": ["wifi"],
- "debug": {
- "default_tool": "esp-builtin",
- "onboard_tools": ["esp-builtin"],
- "openocd_target": "esp32s3.cfg"
- },
- "frameworks": ["arduino", "espidf"],
- "name": "Espressif ESP32-S3 Super Mini",
- "vendor": "Espressif",
- "url": "https://www.espboards.dev/esp32/esp32-s3-super-mini/",
- "upload": {
- "flash_size": "4MB",
- "maximum_size": 4194304,
- "maximum_ram_size": 327680,
- "require_upload_port": true,
- "speed": 460800
- }
- }
- #include <Arduino.h>
- #include <SPI.h>
- #include <Adafruit_NeoPixel.h>
- #include <TFT_eSPI.h>
- // — LED setup —
- #define LED_PIN 48
- #define NUM_LEDS 1
- SPIClass hspi(HSPI);
- Adafruit_NeoPixel strip(NUM_LEDS, LED_PIN, NEO_GRB + NEO_KHZ800);
- TFT_eSPI tft = TFT_eSPI();
- uint16_t hue = 0;
- void setup() {
- Serial.begin(115200);
- // start HSPI for TFT
- hspi.begin(TFT_SCLK, TFT_MISO, TFT_MOSI, TFT_CS);
- // init NeoPixel
- strip.begin();
- strip.show();
- // init TFT
- tft.init();
- }
- void loop() {
- // rainbow cycle
- strip.setPixelColor(0, strip.ColorHSV(hue * 256));
- strip.show();
- hue++;
- delay(20);
- }
- I included the flags from your platformio.ini file as below and it built correctly
- [platformio]
- boards_dir = boards
- [env:esp32-s3-mini-1]
- platform = [email protected]
- board = esp32-s3-super-mini
- framework = arduino
- ; ------------------------
- ; MONITOR
- ; ------------------------
- monitor_speed = 115200
- ; -----------------------
- ; FLASH / PARTITIONS
- ; ------------------------
- board_build.flash_mode = qio
- board_build.flash_size = 4MB
- board_build.arduino.memory_type = qio_qspi
- ; ensure the TFT_eSPI library uses HSPI
- build_flags =
- -D USE_HSPI_PORT
- ; ------------------------
- ; WS2812 LED on GPIO48
- ; ------------------------
- -DLED_PIN=48
- -DNUM_LEDS=1
- -Os
- -DLED_OFF_BEAT=17
- -DUSER_SETUP_LOADED=1
- -DST7789_DRIVER=1
- -DCGRAM_OFFSET
- -DTFT_CS=10
- -DTFT_DC=6
- -DTFT_RST=-1
- -DTFT_MOSI=11
- -DTFT_SCLK=12
- -DTFT_MISO=13
- -DTFT_BL=-1
- -DTOUCH_CS=-1
- -DTFT_BACKLIGHT_ON=HIGH
- -DLOAD_GLCD=1
- -DLOAD_FONT2=1
- -DLOAD_FONT4=1
- -DLOAD_FONT6=1
- -DLOAD_FONT7=1
- -DLOAD_FONT8=1
- -DLOAD_GFXFF=1
- -DSMOOTH_FONT=1
- -DSPI_FREQUENCY=40000000
- lib_deps =
- ;bodmer/TFT_eSPI @ ^2.3.70
- https://github.com/Bodmer/TFT_eSPI.git
- https://github.com/adafruit/Adafruit_NeoPixel.git
- ;adafruit/Adafruit NeoPixel @ ^1.13.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement