forked from charli117/MySmartknob
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
executable file
·120 lines (111 loc) · 2.89 KB
/
platformio.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
116
117
118
119
120
; 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
[platformio]
default_envs = view
src_dir = ./src
lib_dir = ./lib
include_dir = ./include
test_dir = ./test
data_dir = ./data
[base_config]
platform = espressif32@3.4
framework = arduino
; monitor_port = /dev/tty.wchusbserial110
; upload_port = /dev/tty.usbserial-110
upload_protocol = esptool
monitor_speed = 921600
monitor_flags =
--eol=CRLF
--echo
--filter=esp32_exception_decoder
lib_deps =
askuric/Simple FOC @ 2.2.0
bxparks/AceButton @ 1.9.1
build_flags =
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
-D MONITOR_SPEED=921600
[env:view]
extends = base_config
board = esp32doit-devkit-v1
lib_deps =
${base_config.lib_deps}
bodmer/TFT_eSPI@2.4.25
fastled/FastLED @ 3.5.0
bogde/HX711 @ 0.7.5
adafruit/Adafruit VEML7700 Library @ 1.1.1
bakercp/PacketSerial @ 1.4.0
nanopb/Nanopb @ 0.4.6
include/ESP32 BLE Keyboard
NimBLE-Arduino
; homespan/HomeSpan
build_flags =
${base_config.build_flags}
-D SK_DISPLAY=1
-D SK_LEDS=1
-D NUM_LEDS=8
-D SENSOR_MT6701=1
-D SK_STRAIN=1
-D SK_INVERT_ROTATION=1
-D SK_ALS=1
-D BLE_KEYWORD=1
-D USE_NIMBLE=1
-D GET_STATUS=1
-D ENABLE_LOG=1
-D ENABLE_STATE=0
; -D HOMEKIT=0
;引脚定义
-D PIN_UH=26
-D PIN_UL=25
-D PIN_VH=27
-D PIN_VL=32
-D PIN_WH=12
-D PIN_WL=33
-D PIN_BUTTON_NEXT=-1
-D PIN_BUTTON_PREV=-1
-D PIN_SDA=15
-D PIN_SCL=8
-D PIN_MT_DATA=37
-D PIN_MT_CLOCK=13
-D PIN_MT_CSN=14
-D PIN_LED_DATA=7
-D PIN_LCD_BACKLIGHT=19
-D POSITION_FONT=Orbitron_Light_32
-D DESCRIPTION_FONT=Roboto_Thin_24
-D DESCRIPTION_Y_OFFSET=20
-D VALUE_OFFSET=30
-D DRAW_ARC=0
-D USER_SETUP_LOADED=1
-D GC9A01_DRIVER=1
-D CGRAM_OFFSET=1
-D TFT_WIDTH=240
-D TFT_HEIGHT=240
-D TFT_MISO=-1
-D TFT_MOSI=5
-D TFT_SCLK=20
-D TFT_CS=21
-D TFT_DC=22
-D TFT_RST=4
-D TFT_BL=-1
-D LOAD_GLCD=1
-D LOAD_GFXFF=1
-D SPI_FREQUENCY=40000000
-D SMOOTH_FONT=1
; Reduce loop task stack size (only works on newer IDF Arduino core)
; -DARDUINO_LOOP_STACK_SIZE=2048
; Modify the default unusable pin mask to allow GPIO 7 (allowed to use on ESP32-PICO-V3-02)
; Unusable bits: 6, 8, 9, 10, 20
; (0ULL | _FL_BIT(6) | _FL_BIT(8) | _FL_BIT(9) | _FL_BIT(10) | _FL_BIT(20))
-DFASTLED_UNUSABLE_PIN_MASK=0x100740LL
; 0~39 except from 24, 28~31 are valid
; (0xFFFFFFFFFFULL & ~(0ULL | _FL_BIT(24) | _FL_BIT(28) | _FL_BIT(29) | _FL_BIT(30) | _FL_BIT(31)))
-DSOC_GPIO_VALID_GPIO_MASK=0xFF0EFFFFFF
; GPIO >= 34 are input only
; (SOC_GPIO_VALID_GPIO_MASK & ~(0ULL | _FL_BIT(34) | _FL_BIT(35) | _FL_BIT(36) | _FL_BIT(37) | _FL_BIT(38) | _FL_BIT(39)))
-DSOC_GPIO_VALID_OUTPUT_GPIO_MASK=0x30EFFFFFF