aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-ramping.h
diff options
context:
space:
mode:
authorGabriel Hart2021-09-19 10:15:57 -0500
committerGabriel Hart2021-09-19 10:15:57 -0500
commitb1ceb8cc59a075cf9ce69ef4eb1239747be0d4a2 (patch)
treed36c0cc56b7452a84f1f7d2bab0125cd3c94ca99 /spaghetti-monster/fsm-ramping.h
parentMerge TK's changes thru her rev 618 including autolock in Simple UI and jump ... (diff)
parentclarified where brightness level comes from in beacon/sos/momentary modes (diff)
downloadanduril-b1ceb8cc59a075cf9ce69ef4eb1239747be0d4a2.tar.gz
anduril-b1ceb8cc59a075cf9ce69ef4eb1239747be0d4a2.tar.bz2
anduril-b1ceb8cc59a075cf9ce69ef4eb1239747be0d4a2.zip
Merge TK changes thru rev 623 (2021-09-17)
Diffstat (limited to 'spaghetti-monster/fsm-ramping.h')
-rw-r--r--spaghetti-monster/fsm-ramping.h8
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