~ruther/map-led-strip

ref: 6327e31e52b208003c566769bcf2e606f67144ea map-led-strip/src/animations/animation_step.rs -rw-r--r-- 301 bytes
6327e31e — František Boháček feat: add snake animation command 2 years 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
    }
}