Open sofian opened 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.
If one writes the following code:
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.