~toykeeper/flashlight-firmware/fsm

« back to all changes in this revision

Viewing changes to ToyKeeper/spaghetti-monster/anduril/channel-modes.h

  • Committer: Selene ToyKeeper
  • Date: 2023-04-19 08:21:19 UTC
  • mto: (483.1.175 anduril2)
  • mto: This revision was merged to the branch mainline in revision 491.
  • Revision ID: bzr@toykeeper.net-20230419082119-cxx6bgaq8iigzfyz
added stepped tint ramping

patch adapted from SammysHP:
  https://github.com/SammysHP/flashlight-firmware/commit/0df174a6f6cc2676703f55a9b86eb3d9b3896b33

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
#if NUM_CHANNEL_MODES > 1
11
11
uint8_t channel_mode_config_state(Event event, uint16_t arg);
12
12
#endif
 
13
 
 
14
#if defined(USE_CHANNEL_MODE_ARGS) && defined(USE_STEPPED_TINT_RAMPING)
 
15
// calculate the nearest tint value which would be valid at the moment
 
16
uint8_t nearest_tint_value(const int16_t target);
 
17
#endif
 
18