2020-09-19 16:01:14 +00:00
|
|
|
; 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
|
|
|
|
|
2021-10-07 18:35:02 +00:00
|
|
|
# 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_CW=12 ;D6 = GPIO12 (pin6)
|
2021-10-07 19:04:14 +00:00
|
|
|
-D LED_WW=14 ;D5 = GPIO14 (pin5)
|
2021-10-07 18:35:02 +00:00
|
|
|
-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]
|
2020-09-19 16:01:14 +00:00
|
|
|
platform = espressif8266
|
|
|
|
board = d1_mini
|
|
|
|
framework = arduino
|
|
|
|
|
|
|
|
monitor_speed= 115200
|
|
|
|
|
|
|
|
lib_deps =
|
|
|
|
Homie@3.0.0
|
2021-10-07 18:35:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
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
|
2021-10-07 19:11:34 +00:00
|
|
|
-D BRIGHTNESSCURVE=2
|