forked from pr3y/Bruce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathESP-General.ini
115 lines (102 loc) · 3.21 KB
/
ESP-General.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:esp32-s3-devkitc-1-psram]
board_build.arduino.memory_type = qio_opi ; NEEDED FOR 8MB PSRAM (N16R8)
;board_build.partitions = custom_16Mb.csv
;board_upload.flash_size = 16MB
;monitor_speed = 115200
;board_build.partitions = custom_16Mb.csv
;board_build.f_flash = 40000000L
;board_upload.flash_size = 16MB
;board_upload.maximum_size = 16777216
;board_build.f_flash = 40000000L
;board_build.flash_mode = qio
extends = env:esp32-s3-devkitc-1
[env:esp32-s3-devkitc-1]
board = ESP-General
build_src_filter =${env.build_src_filter} +<../boards/ESP-General>
build_flags =
${env.build_flags}
-Iboards/ESP-General
-DUSB_as_HID=1
; grove pins
; defaults from https://github.com/espressif/arduino-esp32/blob/master/variants/esp32s3/pins_arduino.h
-DGROVE_SDA=8 ; default RF TX pin
-DGROVE_SCL=46 ; default IR/RF RX pin
;-DALLOW_ALL_GPIO_FOR_IR_RF=1 ; Set this option to make use of all GPIOs, from 1 to 44 to be chosen, except TFT and SD pins
; ir led pin
-DIR_TX_PINS='{{"M5 IR Mod", GROVE_SDA}, {"Groove W", GROVE_SCL}, {"GROVE Y", GROVE_SDA}}'
-DIR_RX_PINS='{{"M5 IR Mod", GROVE_SCL}, {"Groove W", GROVE_SCL}, {"GROVE Y", GROVE_SDA}}'
-DLED=40
-DLED_ON=HIGH
-DLED_OFF=LOW
;Radio Frequency (one pin modules) pin setting
-DRF_TX_PINS='{{"M5 RF433T", GROVE_SDA}, {"Groove W", GROVE_SCL}, {"GROVE Y", GROVE_SDA}}'
-DRF_RX_PINS='{{"M5 RF433R", GROVE_SCL}, {"Groove W", GROVE_SCL}, {"GROVE Y", GROVE_SDA}}'
; sd card pins
; suggested https://github.com/espressif/esp-idf/tree/master/examples/storage/sd_card/sdmmc
-DSDCARD_CS=-1
-DSDCARD_SCK=-1
-DSDCARD_MISO=-1
-DSDCARD_MOSI=-1
; tft vars
-DROTATION=1
-DBACKLIGHT=-1 ; tft backlight pin
-DMINBRIGHT=160 ; unused?
-DSMOOTH_FONT=1
-DTFT_DISPON=0x29
-DTFT_DISPOFF=0x28
-DTFT_CS=-1
-DTFT_DC=-1
-DTFT_RST=-1
-DTOUCH_CS=-1
-DTFT_MOSI=-1
-DTFT_SCLK=-1
-DTFT_BL=-1
; 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
-DBTN_ALIAS='"OK"'
;FM Radio
;-DFM_SI4713=1 ;Uncomment to activate FM Radio using Adafruit Si4713
-DFM_RSTPIN=12
;Microphone
;-DMIC_SPM1423=1 ; uncomment to enable Applicable for SPM1423 device
;-DPIN_CLK=-1
;-DI2S_SCLK_PIN=-1
;-DI2S_DATA_PIN=-1
;-DPIN_DATA=-1
;CC1101 SPI connection pins
; best connection pins for higher speed https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-reference/peripherals/spi_master.html#gpio-matrix-and-io-mux
-DUSE_CC1101_VIA_SPI
-DCC1101_GDO0_PIN=9
-DCC1101_SS_PIN=10
-DCC1101_MOSI_PIN=11
-DCC1101_SCK_PIN=12
-DCC1101_MISO_PIN=13
;-DCC1101_GDO2_PIN=14 ; optional
; connections are the same as CC1101
;-DUSE_NRF24_VIA_SPI
;-DNRF24_CE_PIN=6
;-DNRF24_SS_PIN=7 ; chip select
;-DNRF24_MOSI_PIN=11
;-DNRF24_SCK_PIN=12
;-DNRF24_MISO_PIN=13
-DSPI_SCK_PIN=12
-DSPI_MOSI_PIN=11
-DSPI_MISO_PIN=13
-DSPI_SS_PIN=10
lib_deps =
${env.lib_deps}