tenbaht / sduino

An Arduino-like programming API for the STM8
http://tenbaht.github.io/sduino/
GNU Lesser General Public License v2.1
349 stars 213 forks source link

Correctly disable PWM output in digitalWrite() #73

Closed Gei0r closed 5 years ago

Gei0r commented 5 years ago

Fixes #72.

The old line in turnOffPWM() which freezes the timer compare channel is not strictly necessary. I left it in because it seems cleaner, but of course there's a small performance cost.

tenbaht commented 5 years ago

Thank you very much for your work!