~toykeeper/flashlight-firmware/fsm

« back to all changes in this revision

Viewing changes to ToyKeeper/spaghetti-monster/anduril/smooth-steps.h

  • Committer: Selene ToyKeeper
  • Date: 2023-11-04 15:09:10 UTC
  • mfrom: (483.1.175 anduril2)
  • Revision ID: bzr@toykeeper.net-20231104150910-ddd3afw4nhfvof2l
merged anduril2 branch -> fsm, with *years* of changes
(this also means this code is now Anduril 2 instead of Anduril 1)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// smooth-steps.h: Smooth step adjustments for Anduril.
 
2
// Copyright (C) 2023 Selene ToyKeeper
 
3
// SPDX-License-Identifier: GPL-3.0-or-later
 
4
 
 
5
#pragma once
 
6
 
 
7
#ifdef USE_SMOOTH_STEPS
 
8
 
 
9
uint8_t smooth_steps_start;
 
10
uint8_t smooth_steps_target;
 
11
uint8_t smooth_steps_in_progress;
 
12
uint8_t smooth_steps_speed;
 
13
 
 
14
void smooth_steps_iter();
 
15
 
 
16
void set_level_smooth(uint8_t level, uint8_t speed);
 
17
 
 
18
#endif
 
19