platformio / platform-ststm8

ST STM8: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/ststm8
Apache License 2.0
40 stars 26 forks source link

PWM output is not correctly disabled in in digitalWrite (fixed in sduino) #39

Open JonasCz opened 3 years ago

JonasCz commented 3 years ago

This is the same problem as described in this issue: https://github.com/tenbaht/sduino/issues/72, which this pull request fixes: https://github.com/tenbaht/sduino/pull/73

Editing the files manually with the contents of that PR manually in PlatformIO fixes the issue too, so it seems like the latest version of sduino with that fix is not being pulled in or something? I'd submit a PR to fix it, but I can't find where the code for framework-arduinoststm8 lives...

valeros commented 3 years ago

The latest Sduino is available in the dev branch, you can try the upstream version of the platform:

[env:test]
platform = https://github.com/platformio/platform-ststm8.git
framework = arduino
board = ...