Skip to content

Commit 4be17e9

Browse files
committed
fix: builds on other platforms
1 parent fef04ca commit 4be17e9

3 files changed

Lines changed: 20 additions & 9 deletions

File tree

include/version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
#ifndef VERSION
3-
#define VERSION "dev.1770569962 - 2026-02-08 08:59:22.965905"
3+
#define VERSION "dev.1770583372 - 2026-02-08 12:42:52.853131"
44
#endif
55
#ifndef VERSION_SHORT
6-
#define VERSION_SHORT "dev.1770569962"
6+
#define VERSION_SHORT "dev.1770583372"
77
#endif

src/Configuration.h

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,33 @@
4040
#if defined(CONFIG_IDF_TARGET_ESP32C3)
4141
#define INTERNAL_LED_PIN GPIO_NUM_8
4242
#define DEVICE_NAME "ESP32C3LED"
43+
#ifdef BUTTONS
44+
#define BUTTON_1_PIN GPIO_NUM_0
45+
#define BUTTON_2_PIN GPIO_NUM_1
46+
#endif
4347
#elif defined(SEEED_XIAO_M0)
4448
#define INTERNAL_LED_PIN 13
4549
#elif defined(CONFIG_IDF_TARGET_ESP32)
4650
#define INTERNAL_LED_PIN LED_BUILTIN
4751
#define DEVICE_NAME "ESP32LED"
52+
#ifdef BUTTONS
53+
#define BUTTON_1_PIN GPIO_NUM_0
54+
#define BUTTON_2_PIN GPIO_NUM_1
55+
#endif
4856
#elif defined(ESP8266)
4957
#define INTERNAL_LED_PIN LED_BUILTIN
5058
#define DEVICE_NAME "ESP8266LED"
59+
#ifdef BUTTONS
60+
#define BUTTON_1_PIN D0
61+
#define BUTTON_2_PIN D1
62+
#endif
5163
#else
5264
#define INTERNAL_LED_PIN LED_BUILTIN
5365
#define DEVICE_NAME "ESPXXLED"
66+
#ifdef BUTTONS
67+
#define BUTTON_1_PIN 0
68+
#define BUTTON_2_PIN 1
69+
#endif
5470
#endif
5571

5672
#ifdef WIFI
@@ -87,18 +103,13 @@
87103
#define LED_STRIP_SIZE 267
88104
#define OUTTER_RING_SIZE 141
89105
#else
90-
#define LED_STRIP_SIZE 90
106+
#define LED_STRIP_SIZE 103
91107
#define OUTTER_RING_SIZE 240
92108
#endif
93109
#define LED_BRIGHTNESS 1 // 0-1, 1-max brightness, make sure your LEDs are powered accordingly
94110
#define LED_COLOR_ORDER GRB
95111
#endif
96112

97-
#ifdef BUTTONS
98-
#define BUTTON_1_PIN GPIO_NUM_0
99-
#define BUTTON_2_PIN GPIO_NUM_1
100-
#endif
101-
102113
#if defined(CONFIG_IDF_TARGET_ESP32C3)
103114
#ifdef OLED // ESD32C3 has a built-in OLED ie ESP32C4 Dev board
104115
#define OLED_SCREEN_WIDTH 72 // OLED display width, in pixels

src/Device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class CDevice {
2323

2424
public:
2525
CDevice();
26-
~CDevice();
26+
virtual ~CDevice();
2727
void loop();
2828

2929
DeviceState getState() const { return _state; }

0 commit comments

Comments
 (0)