The basic question here is how to pass a MicroPython object to a C function in a custom C module. In this case a PWM object. There are probably many ways to do this. Here is my way of doing it. It may ...
🐍📰 MicroPython: An Intro to Programming Hardware in Python In this tutorial, you'll learn about MicroPython and the world of electronics hardware. You'll set up your board, write your code, and ...
例えば、MicroPython用マイコン「pyboard」で以下のコードを実行すると、pyboardのLEDをオンにして「Hello MicroPython!」と シリアルコンソール に出力することができます。 また、ブラウザ上でpyboardを操作できる ウェブアプリ も公開されています。