bbcmicrobit / micropython

Port of MicroPython for the BBC micro:bit
https://microbit-micropython.readthedocs.io
Other
603 stars 284 forks source link

microbit: Add get_analog_period_microseconds method to more pin classes. #630

Closed microbit-carlos closed 3 years ago

microbit-carlos commented 5 years ago

I noticed the get_analog_period_microseconds method was not present on all the micro:bit pins, turns out it was only added to the MicroBitDigitalPin class definition, so this PR adds the method to MicroBitAnalogDigitalPin and MicroBitTouchPin as well.

dpgeorge commented 5 years ago

Looks good, although I didn't test it.

dpgeorge commented 3 years ago

Tested and merged in aa42114b279dfa7f3f0775dda83b43a98553e701