pub fn flow(&self, ms: u64) -> sysfs_gpio::Result<()> {
        let iter = self.pins.clone().into_iter();
        for i in 0..self.pins.len() {
            self.on(i)?;
            sleep(Duration::from_millis(ms));
            self.off(i)?;
        }
        Ok(())
    }
/// Create a rippling effect on the LEDBar component.
/// Turns on 1 LED for ms milliseconds, then off and proceeds to the next one.
Create a rippling effect on the LEDBar component.
Turns on 1 LED for ms milliseconds, then off and proceeds to the next one.
Create a rippling effect on the LEDBar component . Turns on 1 LED for ms milliseconds then off and proceeds to the next one .
pub fn flow(&self, ms: u64) -> sysfs_gpio::Result<()> {
        let iter = self.pins.clone().into_iter();
        for i in 0..self.pins.len() {
            self.on(i)?;
            sleep(Duration::from_millis(ms));
            self.off(i)?;
        }
        Ok(())
    }
pub fn flow ( & self , ms : u64 ) -> sysfs_gpio :: Result < ( ) > { let iter = self . pins . clone ( ) . into_iter ( ) ; for i in 0 .. self . pins . len ( ) { self . on ( i ) ? ; sleep ( Duration :: from_millis ( ms ) ) ; self . off ( i ) ? ; } Ok ( ( ) ) }
Create a rippling effect on the LEDBar component.
Create a rippling effect on the LEDBar component .
&self
ms
u64
&self
ms
u64