29 lines
799 B
INI
29 lines
799 B
INI
|
; 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:d1_mini]
|
||
|
platform = espressif8266
|
||
|
board = d1_mini
|
||
|
framework = arduino
|
||
|
upload_speed = 921600
|
||
|
|
||
|
monitor_speed = 115200
|
||
|
|
||
|
|
||
|
build_flags =
|
||
|
-D ID=0 ;0=black box first print, 1=black print new design, 2=white cardboard
|
||
|
-D PIN_LEFT=D5
|
||
|
-D PIN_RIGHT=D6
|
||
|
-D PIN_UP=D2 ;SDA
|
||
|
-D PIN_DOWN=D1 ;SCL
|
||
|
-D PIN_A=D4 ;D3 GPIO 0, wakes esp from deepsleep when pulled down
|
||
|
-D PIN_B=D3 ;D3 GPIO 0, prevents boot when pulled down
|
||
|
|