Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Käppler
ampel-firmware
Commits
3b20982c
Commit
3b20982c
authored
4 years ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
Different conventions for LEDs
parent
1722ca32
master
dev/calibnightmode
dev/configbreathing
dev/debugcalib
dev/fixstartup
dev/sensorstates
develop
refactor/calibration
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
led_effects.cpp
+9
-0
led_effects.cpp
with
9 additions
and
0 deletions
+9
-0
led_effects.cpp
+
9
-
0
View file @
3b20982c
...
...
@@ -43,11 +43,20 @@ namespace LedEffects {
}
void
onBoardLEDOff
()
{
//NOTE: OFF is LOW on ESP32 and HIGH on ESP8266 :-/
#ifdef ESP8266
digitalWrite
(
ONBOARD_LED_PIN
,
HIGH
);
#else
digitalWrite
(
ONBOARD_LED_PIN
,
LOW
);
#endif
}
void
onBoardLEDOn
()
{
#ifdef ESP8266
digitalWrite
(
ONBOARD_LED_PIN
,
LOW
);
#else
digitalWrite
(
ONBOARD_LED_PIN
,
HIGH
);
#endif
}
void
LEDsOff
()
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets