Josverl / micropython-stubs

Stubs of most MicroPython ports, boards and versions to make writing code that much simpler.
https://micropython-stubs.readthedocs.io
MIT License
133 stars 21 forks source link

Missing machine.PWM #719

Closed andrewleech closed 1 year ago

andrewleech commented 1 year ago

In particular I'm using the stm32 stubs and notice they're missing machine.PWM https://github.com/Josverl/micropython-stubs/blob/main/stubs/micropython-latest-stm32-merged/machine.pyi

ref: https://docs.micropython.org/en/latest/library/machine.PWM.html

andrewleech commented 1 year ago

It took me way too long to realise that stm32 port doesn't actually implement or provide machine.PWM. So yeah, stubs are correct!

Josverl commented 1 year ago

Hi Andrew, Sorry for not noticing earlier, but that is exactly what I wanted to solve with the stubs.

But I've been in the same place of confusion over what works where and how.

Happy to hear that this time it worked out