add led emission normalization

This commit is contained in:
merlokk
2019-01-21 17:09:51 +02:00
parent dffc1833cb
commit c3b4806e85
3 changed files with 33 additions and 9 deletions

View File

@ -53,10 +53,10 @@ void hw_init(void);
// 0xRRGGBB
#define LED_INIT_VALUE 0x000800
#define LED_WINK_VALUE 0x000010
#define LED_MAX_SCALER 30
#define LED_MAX_SCALER 15
#define LED_MIN_SCALER 1
// # of ms between each change in LED
#define HEARTBEAT_PERIOD 100
#define HEARTBEAT_PERIOD 150
// Each LED channel will be multiplied by a integer between LED_MAX_SCALER
// and LED_MIN_SCALER to cause the slow pulse. E.g.
// #define LED_INIT_VALUE 0x301000