experiments with the builtin LED
Signed-off-by: dragonchaser <christian@boltares.de>
This commit is contained in:
@@ -31,9 +31,9 @@ void Vibrate();
|
||||
|
||||
// LED configuration
|
||||
#define LED_TYPE WS2812B
|
||||
#define LED_DATA_PIN 1
|
||||
#define LED_NUM_LEDS 7
|
||||
#define LED_COLOR_ORDER RGB
|
||||
#define LED_DATA_PIN 21
|
||||
#define LED_NUM_LEDS 1
|
||||
#define LED_COLOR_ORDER GRB // USE GRB for the onboard led and RGB for the chain
|
||||
|
||||
#define LED_BRIGHTNESS 96
|
||||
#define LED_FRAMES_PER_SECOND 24
|
||||
@@ -54,7 +54,7 @@ void Vibrate();
|
||||
// Number of devices that can be monitored (might cause a reset because of memory oversaturation!)
|
||||
// If you are using more then 16, you have to use CRGBPalette256 instead of CRGBPalette16
|
||||
// It probably makes sense to align this with LED_NUM_LEDS
|
||||
#define MAX_MONITOR_DEVICES 7
|
||||
#define MAX_MONITOR_DEVICES 3
|
||||
// Minimum transmit power the device needs to be recognice (this defines the min proximity needed for the device to be used)
|
||||
// TODO: add a table here that defines distance in meters for scenarios where the device is in plain sight
|
||||
#define MIN_RSSI_POWER -50
|
||||
@@ -227,6 +227,9 @@ void setup() {
|
||||
// Assuming the best case 0.07A when no lights ae on and the worst case 0.15A when all 7 lights are on
|
||||
// and using a 20Ah powerbank, the device sholuld run between 5.5 days and 11.9 days
|
||||
// esp_light_sleep does not work, neither das disabling the brown-out-detector
|
||||
|
||||
// Using only the onboard LED it uses 0.05A with LED switched of and up to 0.07A with LED switched on
|
||||
// assuming that we use a 20Ah powerbank again this should give us a runtime of up to 11.9 days
|
||||
esp_wifi_stop();
|
||||
esp_wifi_deinit();
|
||||
esp_wifi_set_mode(WIFI_MODE_NULL);
|
||||
|
||||
Reference in New Issue
Block a user