SofaPirate / Plaquette

Object-oriented Arduino library for creative physical computing
https://sofapirate.github.io/Plaquette/
GNU General Public License v3.0
15 stars 4 forks source link

Apply effect only during update #86

Open sofian opened 8 months ago

sofian commented 8 months ago

If one writes the following code:

DigitalOut led(13);
...

void step() {
  led.on();
  led.off();
}

Then the LED will be at 50% but I think only the last call should apply (ie. led.off() in this case). Otherwise it could be confusing.