~ruther/map-led-strip

ref: d8e7cb5329e8290f34eed57b5ff3037350ea273e map-led-strip/src/animations/animation_step.rs -rw-r--r-- 301 bytes
d8e7cb53 — František Boháček fix: do not call apply on animation after last step 1 year, 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use fugit::MicrosDurationU64;

pub struct AnimationStep {
    duration: MicrosDurationU64,
}

impl AnimationStep {
    pub fn new(duration: MicrosDurationU64) -> Self {
        Self {
            duration
        }
    }

    pub fn duration(&self) -> MicrosDurationU64 {
        self.duration
    }
}
Do not follow this link