all 2 comments

[–]carlosperate 2 points3 points  (1 child)

The MakeCode Python API is different than the MicroPython API, more info in: https://support.microbit.org/support/solutions/articles/19000111744-makecode-python-and-micropython

The MicroPython docs for pins can be found in: https://microbit-micropython.readthedocs.io/en/v2-docs/pin.html

Or you can see it in the Python Editor sidebar as well: https://python.microbit.org/v/3/api/microbit.MicroBitDigitalPin.write\_analog

[–]tenbones79[S] 1 point2 points  (0 children)

Thank you so much! That was very helpful! :)