Skip to content

Commit 03b0982

Browse files
committed
Option to disable onboard notification led (also easytarget#138)
1 parent 88d07a9 commit 03b0982

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

esp32-cam-webserver.ino

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ char myVer[] PROGMEM = __DATE__ " @ " __TIME__;
147147
#endif
148148
int myRotation = CAM_ROTATION;
149149

150-
// Illumination LAMP/LED
150+
// Illumination LAMP and status LED
151151
#if defined(LAMP_DISABLE)
152152
int lampVal = -1; // lamp is disabled in config
153153
#elif defined(LAMP_PIN)
@@ -159,6 +159,11 @@ int myRotation = CAM_ROTATION;
159159
#else
160160
int lampVal = -1; // no lamp pin assigned
161161
#endif
162+
163+
#if defined(LED_DISABLE)
164+
#undef LED_PIN // undefining this disables the notification LED
165+
#endif
166+
162167
bool autoLamp = false; // Automatic lamp (auto on while camera running)
163168

164169
int lampChannel = 7; // a free PWM channel (some channels used by camera)

myconfig.sample.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ struct station stationList[] = {{"ssid1", "pass1", true},
151151
// Default Page: uncomment to make the full control page the default, otherwise show simple viewer
152152
// #define DEFAULT_INDEX_FULL
153153

154+
// Uncomment to disable the notification LED on the module
155+
// #define LED_DISABLE
156+
154157
// Uncomment to disable the illumination lamp features
155158
// #define LAMP_DISABLE
156159

0 commit comments

Comments
 (0)