diff options
| author | Selene ToyKeeper | 2023-10-26 08:29:44 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2023-10-26 08:29:44 -0600 |
| commit | fd7aa0297954c511d3f0ec2353a8fcc3c68a3b5a (patch) | |
| tree | e3d99e926bf6ad7d71fa37b78fdf4bbb08dc6329 /spaghetti-monster/fsm-ramping.h | |
| parent | converted blf-gt-mini to new API (diff) | |
| download | anduril-fd7aa0297954c511d3f0ec2353a8fcc3c68a3b5a.tar.gz anduril-fd7aa0297954c511d3f0ec2353a8fcc3c68a3b5a.tar.bz2 anduril-fd7aa0297954c511d3f0ec2353a8fcc3c68a3b5a.zip | |
converted Sofirn LT1-t1616 to new API, using SiteRelEnby's branch for reference
(needs further updates though, to improve ramping, since this version is
basically a straight conversion of the old t85 code with 8-bit ramps)
Diffstat (limited to 'spaghetti-monster/fsm-ramping.h')
| -rw-r--r-- | spaghetti-monster/fsm-ramping.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spaghetti-monster/fsm-ramping.h b/spaghetti-monster/fsm-ramping.h index bfcc5fb..c4b7d48 100644 --- a/spaghetti-monster/fsm-ramping.h +++ b/spaghetti-monster/fsm-ramping.h @@ -69,7 +69,9 @@ void gradual_tick(); #define STACKED_PWM_DATATYPE uint8_t #define PWM_DATATYPE uint8_t #define PWM_DATATYPE2 uint16_t - #define PWM_TOP 255 + #ifndef PWM_TOP + #define PWM_TOP 255 + #endif #define STACKED_PWM_TOP 255 #ifndef PWM_GET #define PWM_GET(x,y) pgm_read_byte(x+y) |
