diff --git a/README.md b/README.md index 449f472..f7429a3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # BTClock v2 Improved code for BTClock with many features. +Don't forget to copy `config.h.example` to `config.h`. Not necessary to adapt it, since everything should be configurable through the WebUI. ## Software diff --git a/platformio.ini b/platformio.ini index 50316e3..aa676d8 100644 --- a/platformio.ini +++ b/platformio.ini @@ -20,7 +20,7 @@ monitor_filters = esp32_exception_decoder, colorize extra_scripts = post:scripts/extra_script.py lib_deps = bblanchon/ArduinoJson@^6.21.2 - fbiego/ESP32Time@^2.0.0 + fbiego/ESP32Time@^2.0.1 zinggjm/GxEPD2@^1.5.2 adafruit/Adafruit MCP23017 Arduino Library@^2.3.0 adafruit/Adafruit NeoPixel@^1.11.0 @@ -56,7 +56,7 @@ build_flags = -D WITH_RGB_LED -D NEOPIXEL_COUNT=4 -DASYNCWEBSERVER_REGEX - ; -D WITH_BUTTONS + -D WITH_BUTTONS -D ARDUINO_USB_CDC_ON_BOOT -D HOSTNAME="\"btclock3\"" -D CONFIG_ASYNC_TCP_PRIORITY=500 @@ -67,6 +67,7 @@ framework = arduino board = lolin_s3_mini board_build.partitions = partition.csv build_flags = + -D NO_DISPLAY -D IS_3C -D IS_S3 -D CONFIG_FREERTOS_USE_TRACE_FACILITY @@ -89,6 +90,22 @@ platform = espressif32 board = esp32-s3-devkitc-1 board_build.partitions = partition.csv ;upload_protocol = esp-builtin +build_flags = + -D NO_DISPLAY + -D NO_MCP + -D IS_BW + -D WITH_RGB_LED + -D NEOPIXEL_COUNT=1 + -D NEOPIXEL_PIN=38 + -D CONFIG_ASYNC_TCP_PRIORITY=500 + -DASYNCWEBSERVER_REGEX + -D HOSTNAME="\"btclocks3d\"" + +[env:esp32_c6] +platform = espressif32 +board = esp32-s3-devkitc-1 +board_build.partitions = partition.csv +;upload_protocol = esp-builtin build_flags = -D NO_DISPLAY -D NO_MCP diff --git a/src/config.h.example b/src/config.h.example index 789076e..03e3404 100644 --- a/src/config.h.example +++ b/src/config.h.example @@ -19,4 +19,6 @@ #define BITCOIND_RPC_PASS "" #define DEFAULT_FG_COLOR GxEPD_WHITE -#define DEFAULT_BG_COLOR GxEPD_BLACK \ No newline at end of file +#define DEFAULT_BG_COLOR GxEPD_BLACK + +#define I2C_DEV_ADDR 0x55 \ No newline at end of file