2024-09-11 01:41:41 +02: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
|
|
|
|
|
2024-10-20 23:57:13 +02:00
|
|
|
[env:esp32-c3-devkitm-1] ;; Compatible with the ESP32-C3 Super Mini board
|
2024-09-11 01:41:41 +02:00
|
|
|
platform = espressif32
|
|
|
|
board = esp32-c3-devkitm-1
|
|
|
|
framework = arduino
|
|
|
|
lib_deps =
|
|
|
|
adafruit/Adafruit NeoPixel@^1.12.3
|
|
|
|
bblanchon/ArduinoJson@^7.1.0
|
|
|
|
sstaub/NTP@^1.6
|
2024-09-20 01:48:19 +02:00
|
|
|
tzapu/WiFiManager@^2.0.17
|
2024-10-13 02:14:21 +02:00
|
|
|
khoih-prog/ESP32_C3_TimerInterrupt@^1.8.0
|
2024-09-11 01:41:41 +02:00
|
|
|
build_flags =
|
|
|
|
-D ARDUINO_USB_MODE=1
|
|
|
|
-D ARDUINO_USB_CDC_ON_BOOT=1
|
2024-10-20 23:57:13 +02:00
|
|
|
|
|
|
|
;;
|
|
|
|
;; Enable and disable optional features here, or change their pin mappings:
|
|
|
|
;;
|
|
|
|
|
|
|
|
;; FEATURE_CONFIGAP: Always start the WifiManager access point if the pin provided here is pulled LOW during powerup.
|
|
|
|
-D FEATURE_CONFIGAP=5
|
|
|
|
|
|
|
|
;; FEATURE_CONFIGAP_GND: If enabled, this pin is always driven LOW.
|
|
|
|
;; Intended to provide a neighboring "pseudo-GND" pin next to the CONFIGAP pin for using a jumper between the two.
|
|
|
|
-D FEATURE_CONFIGAP_GND=6
|
|
|
|
|
|
|
|
;; FEATURE_LDR: If enabled, read the ambient brightness via an LDR connected to the ADC through the pin provided here.
|
|
|
|
;; The pin provided MUST be an ADC-capable pin (0-5 on the ESP32-C3 Super Mini). This enables the following features:
|
|
|
|
;; - Turning off the LEDs below a certain (configurable) brightness.
|
|
|
|
;; - Scaling the LED output power with the ambient brightness.
|
|
|
|
;; - Additional parameters in the WifiManager config menu for configuring these features.
|
|
|
|
;; Check out the README for a schematic of how to wire up the LDR.
|
|
|
|
-D FEATURE_LDR=3
|