diff options
| author | Selene ToyKeeper | 2021-09-15 01:40:06 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2021-09-15 01:40:06 -0600 |
| commit | b2d963efd4bcbc83a310c26d31c306176e21b1f6 (patch) | |
| tree | f2f01f6545dac54f9b23bbc2fa14c6dfd84950b7 /spaghetti-monster/fsm-ramping.h | |
| parent | documented "hold" action in number entry state (diff) | |
| parent | added Noctigon K9.3-tintramp build targets for FET, reduced FET, and noFET (diff) | |
| download | anduril-b2d963efd4bcbc83a310c26d31c306176e21b1f6.tar.gz anduril-b2d963efd4bcbc83a310c26d31c306176e21b1f6.tar.bz2 anduril-b2d963efd4bcbc83a310c26d31c306176e21b1f6.zip | |
merged K9.3-tintramp / D4Sv2-tintramp branch
(which also changed the way tint ramping is implemented,
to make things generally cleaner and more flexible)
Diffstat (limited to 'spaghetti-monster/fsm-ramping.h')
| -rw-r--r-- | spaghetti-monster/fsm-ramping.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spaghetti-monster/fsm-ramping.h b/spaghetti-monster/fsm-ramping.h index 7a4fa3b..c1f6064 100644 --- a/spaghetti-monster/fsm-ramping.h +++ b/spaghetti-monster/fsm-ramping.h @@ -42,6 +42,10 @@ inline void set_level_gradually(uint8_t lvl); void gradual_tick(); #endif +#if defined(USE_TINT_RAMPING) && (!defined(TINT_RAMP_TOGGLE_ONLY)) +void update_tint(); +#endif + // auto-detect the data type for PWM tables #ifndef PWM_BITS #define PWM_BITS 8 @@ -49,10 +53,14 @@ void gradual_tick(); #endif #if PWM_BITS <= 8 #define PWM_DATATYPE uint8_t +#define PWM_DATATYPE2 uint16_t #define PWM_TOP 255 #define PWM_GET(x,y) pgm_read_byte(x+y) #else #define PWM_DATATYPE uint16_t +#ifndef PWM_DATATYPE2 +#define PWM_DATATYPE2 uint32_t +#endif #ifndef PWM_TOP #define PWM_TOP 1023 // 10 bits by default #endif |
