Skip to content

Commit

Permalink
remove userdefines.h based LED configuration
Browse files Browse the repository at this point in the history
needs to be done by iotwebconf config item.
  • Loading branch information
ThomasWaldmann committed May 13, 2021
1 parent ded0cfd commit 59da93b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
11 changes: 0 additions & 11 deletions multigeiger/status_led.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

#include "userdefines.h"

#if STATUS_LED==1 // we have a WS2812 RGB LED!

#include <NeoPixelBus.h>

#include "status_led.h"
Expand Down Expand Up @@ -96,12 +94,3 @@ void indicate(float radiation, unsigned int indication) {
if (++index == CSL)
index = 0;
}

#else // no STATUS_LED

void indicate(float radiation, unsigned int indication) {
// do nothing
}

#endif // STATUS_LED

3 changes: 0 additions & 3 deletions multigeiger/userdefines-example.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,3 @@
// 0x2A38: Heart Rate Sensor Position --> sends TUBE_TYPE
// 0x2A39: Heart Rate Control Point --> allows to reset "energy expenditure", as required by service definition
#define SEND2BLE false

// 0: no RGB status LED, 1: WS2812B status LED
#define STATUS_LED 1

0 comments on commit 59da93b

Please sign in to comment.