Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more boards tested #322

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,26 @@ board = esp12e
board_build.f_cpu = 160000000L
board_build.filesystem = littlefs

[env:nodemcu]
platform = espressif8266
board = nodemcu
board_build.filesystem = littlefs

[env:node32s]
; Comment out min_spiffs.csv setting if disabling PROGMEM_WWW with ESP32
board_build.partitions = min_spiffs.csv
platform = espressif32
board = node32s
board_build.filesystem = littlefs

[env:esp32wbat]
board_build.partitions = min_spiffs.csv
platform = espressif32
board = wemosbat
board_build.filesystem = littlefs

[env:wemos mini pro]
board_build.partitions = min_spiffs.csv
platform = espressif8266
board = d1_mini_pro
board_build.filesystem = littlefs
6 changes: 3 additions & 3 deletions src/LightStateService.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <MqttPubSub.h>
#include <WebSocketTxRx.h>

#define LED_PIN 2
#define LED_PIN LED_BUILTIN

#define DEFAULT_LED_STATE false
#define OFF_STATE "OFF"
Expand All @@ -16,8 +16,8 @@
// Note that the built-in LED is on when the pin is low on most NodeMCU boards.
// This is because the anode is tied to VCC and the cathode to the GPIO 4 (Arduino pin 2).
#ifdef ESP32
#define LED_ON 0x1
#define LED_OFF 0x0
#define LED_ON 0x0
#define LED_OFF 0x1
#elif defined(ESP8266)
#define LED_ON 0x0
#define LED_OFF 0x1
Expand Down