diff --git a/esp32/custom_platformio.ini.example b/esp32/custom_platformio.ini.example index c4c2974..f048010 100644 --- a/esp32/custom_platformio.ini.example +++ b/esp32/custom_platformio.ini.example @@ -1,16 +1,41 @@ +; 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:esp32doit-devkit-v1] -platform = espressif32 +platform = espressif32@6.3.2 board = esp32doit-devkit-v1 framework = arduino build_flags = -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY + -DPLANT0_SENSORTYPE=FREQUENCY_MOD_RESISTANCE_PROBE + -DPLANT1_SENSORTYPE=FREQUENCY_MOD_RESISTANCE_PROBE + -DPLANT2_SENSORTYPE=FREQUENCY_MOD_RESISTANCE_PROBE + -DPLANT3_SENSORTYPE=FREQUENCY_MOD_RESISTANCE_PROBE + -DPLANT4_SENSORTYPE=FREQUENCY_MOD_RESISTANCE_PROBE + -DPLANT5_SENSORTYPE=FREQUENCY_MOD_RESISTANCE_PROBE + -DPLANT6_SENSORTYPE=FREQUENCY_MOD_RESISTANCE_PROBE + -DTIMED_LIGHT_PIN=CUSTOM1_PIN5 + -DFLOWMETER_PIN=CUSTOM1_PIN1 + -DANALOG_WATER=GPIO_NUM_34 + board_build.partitions = defaultWithSmallerSpiffs.csv +;#https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/partition-tables.html + + ; the latest development brankitchen-lightch (convention V3.0.x) -lib_deps = ArduinoJson@6.16.1 - OneWire - DallasTemperature - pololu/VL53L0X +lib_deps = bblanchon/ArduinoJson@^6.20.1 + paulstoffregen/OneWire@^2.3.6 + milesburton/DallasTemperature@^3.11.0 + pololu/VL53L0X@^1.3.1 https://github.com/homieiot/homie-esp8266.git#develop -; add additional parameter, like the upload port -upload_port=/dev/ttyUSB1 +[platformio] + +extra_configs = custom_platformio.ini