Skip to content

Commit

Permalink
Merge pull request #124 from eadmaster/esp32s3headless-webui
Browse files Browse the repository at this point in the history
added headless mode, numbered keyboard shortcuts, added boot sound (#107) (#113)
  • Loading branch information
pr3y authored Aug 5, 2024
2 parents a315dd5 + cd225f3 commit 5bd8dad
Show file tree
Hide file tree
Showing 23 changed files with 2,159 additions and 335 deletions.
56 changes: 56 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ build_flags =

;Have RTC Chip
-DHAS_RTC=1

;Have buzzer
-DBUZZ_PIN=2

;Buttons configuration
-DHAS_BTN=1
Expand Down Expand Up @@ -623,6 +626,59 @@ lib_deps =
${common.lib_deps}


[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
-DUSB_as_HID=1
; needed for serial
-DARDUINO_USB_CDC_ON_BOOT=1
; ir led pin
-DLED=40
-DLED_ON=HIGH
-DLED_OFF=LOW
; sd card pins
-DSDCARD_CS=-1
-DSDCARD_SCK=-1
-DSDCARD_MISO=-1
-DSDCARD_MOSI=-1
; grove pins (SDA=default TX pin, SCL=default RX pin)
-DGROVE_SDA=35
-DGROVE_SCL=36
; tft vars
-DROTATION=1
-DBACKLIGHT=15 ; tft backlight pin
-DWIDTH=240
-DHEIGHT=135
-DMINBRIGHT=160 ; unused?
-DMAX_MENU_SIZE=5
-DSMOOTH_FONT=1
-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='"OK"'
;Microphone
;-DMIC_SPM1423=1 ; uncomment to enable Applicable for SPM1423 device
-DPIN_CLK=43
-DI2S_SCLK_PIN=43
-DI2S_DATA_PIN=46
-DPIN_DATA=46
lib_deps =
${common.lib_deps}

#New device model
[env:NewDeviceModel]
platform = espressif32
Expand Down
Loading

0 comments on commit 5bd8dad

Please sign in to comment.