allow disabling serial, add missing comments
Signed-off-by: dragonchaser <christian@boltares.de>
This commit is contained in:
@@ -31,8 +31,8 @@ void Vibrate();
|
||||
|
||||
// LED configuration
|
||||
#define LED_TYPE WS2812B
|
||||
#define LED_DATA_PIN 21
|
||||
#define LED_NUM_LEDS 1
|
||||
#define LED_DATA_PIN 21 // use 1 for GPIO 1 and 21 for builtin
|
||||
#define LED_NUM_LEDS 1 // use 1 for builtin and whatever your count is for extern
|
||||
#define LED_COLOR_ORDER GRB // USE GRB for the onboard led and RGB for the chain
|
||||
|
||||
#define LED_BRIGHTNESS 96
|
||||
@@ -59,6 +59,8 @@ void Vibrate();
|
||||
// TODO: add a table here that defines distance in meters for scenarios where the device is in plain sight
|
||||
#define MIN_RSSI_POWER -50
|
||||
|
||||
#define USE_SERIAL false
|
||||
|
||||
// CONSTS
|
||||
const std::map<String, String> overrideColors = {
|
||||
{"36E898", "FF0000"}, // MiiBand Klaas
|
||||
@@ -180,7 +182,9 @@ class AdvertisedDeviceCallbacks : public BLEAdvertisedDeviceCallbacks {
|
||||
};
|
||||
|
||||
void setup() {
|
||||
Serial.begin(115200);
|
||||
if (USE_SERIAL) {
|
||||
Serial.begin(115200);
|
||||
}
|
||||
|
||||
if (useVibro) {
|
||||
pinMode(VIBRO_PIN, OUTPUT);
|
||||
|
||||
Reference in New Issue
Block a user