61 lines
1.5 KiB
INI
61 lines
1.5 KiB
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
|
|
|
|
# Flash upload with platformio run -t upload --environment sensorespx
|
|
|
|
[platformio]
|
|
#For Config upload comment in data_dir line and flash with platformio run -t uploadfs --environment sensorespx
|
|
data_dir=data_tischlicht
|
|
#data_dir=data_kuechenlicht
|
|
|
|
#Tischlicht
|
|
[env:tischlicht]
|
|
platform = espressif8266
|
|
board = d1_mini
|
|
framework = arduino
|
|
|
|
monitor_speed= 115200
|
|
|
|
lib_deps =
|
|
Homie@3.0.0
|
|
|
|
|
|
build_flags =
|
|
-D DUALCOLOR
|
|
-D LED_WW=12 ;D6 = GPIO12 (pin6)
|
|
-D LED_CW=14 ;D5 = GPIO14 (pin5)
|
|
-D BTN_A=13 ;D7 = GPIO13 (pin 7)
|
|
-D BTN_B=15 ;D8 = GPIO15 (pin 10)
|
|
-D PWM_FREQUENCY=500 ;default: 1000 Hz
|
|
-D PWM_MAX=1023 ;10 bit dac
|
|
-D BRIGHTNESSCURVE=1.4
|
|
-D TEMPERATURE_MIN=2760 ;temperature of warm white leds
|
|
-D TEMPERATURE_MAX=5640 ;temperature of cold white leds
|
|
|
|
|
|
#Kuechenlicht
|
|
[env:kuechenlicht]
|
|
platform = espressif8266
|
|
board = d1_mini
|
|
framework = arduino
|
|
|
|
monitor_speed= 115200
|
|
|
|
lib_deps =
|
|
Homie@3.0.0
|
|
|
|
|
|
build_flags =
|
|
-D LED_PWM=D5
|
|
-D BTN_A=D7
|
|
-D PWM_FREQUENCY=1000 ;default: 1000 Hz
|
|
-D PWM_MAX=1023 ;10 bit dac
|
|
-D PWM_MINDIMMED=PWM_MAX/3
|
|
-D BRIGHTNESSCURVE=2 |