rahul-thakoor / rust_gpiozero

A library inspired by gpiozero written in Rust
https://crates.io/crates/rust_gpiozero
Apache License 2.0
233 stars 27 forks source link

Output devices clear effects #42

Open rares45 opened 1 year ago

rares45 commented 1 year ago

When running the following code, the second blink command does not work and it continues to run the first blink:

led.blink(0.05, 0.05, 0.0, 0.0);
thread::sleep(Duration::from_millis(1000));
led.blink(1.0, 1.0, 0.0, 0.0);

Is there any way to stop all current processes?