diff --git a/platformio.ini b/platformio.ini index c8b7c936..65f22438 100644 --- a/platformio.ini +++ b/platformio.ini @@ -13,6 +13,7 @@ default_envs = m5stack-cplus1_1 m5stack-cplus2 m5stack-cardputer + esp32-s3-devkitc-1 [common] build_flags = @@ -234,3 +235,54 @@ build_flags = lib_deps = ${common.lib_deps} xylopyrographer/LiteLED@^1.2.0 + +[env:esp32-s3-devkitc-1] +platform = espressif32 +board = esp32-s3-devkitc-1 +framework = arduino +board_build.partitions = custom_16Mb.csv +board_upload.flash_size = 16MB +build_flags = + ${common.build_flags} + -DESP32S3DEVKITC1 + ; needed for serial + -DARDUINO_USB_CDC_ON_BOOT=1 + ; ir led pin + -DLED=44 + -DLED_ON=HIGH + -DLED_OFF=LOW + ; sd card pins + -DSDCARD_CS=-1 + -DSDCARD_SCK=-1 + -DSDCARD_MISO=-1 + -DSDCARD_MOSI=-1 + ; grove pins + -DGROVE_SDA=-1 + -DGROVE_SCL=-1 + ; tft vars + -DROTATION=1 + -DBACKLIGHT=-1 ; tft backlight pin + -DWIDTH=240 + -DHEIGHT=135 + -DMINBRIGHT=160 ; unused? + -DMAX_MENU_SIZE=5 + -DSMOOTH_FONT=1 + ;-DUSE_DUMB_DISPLAY + -DTFT_DISPON=0x29 + -DTFT_DISPOFF=0x28 + ; text sizes + -DFP=1 + -DFM=2 + -DFG=3 + ; ui control buttons + -DSEL_BTN=1 + -DUP_BTN=2 ; also work as ESC + -DDW_BTN=3 ; also work as NEXT + -DTOUCH_THRESHOLD=20 + -DBTN_ALIAS='"M5"' +lib_deps = + ${common.lib_deps} + ;arpruss/VectorDisplay + ;https://github.com/eadmaster/vectordisplayarduino + ;https://github.com/trevorwslee/Arduino-DumbDisplay + \ No newline at end of file