Open
Description
In comparison V1 returns the configured period (default is 20ms).
V1:
>>> pin0.get_analog_period_microseconds()
20000
V2:
>>> pin0.get_analog_period_microseconds()
-1
>>> pin0.write_analog(512)
>>> pin0.get_analog_period_microseconds()
20000
Looks like this is by design? as CODAL is not providing the data:
micropython-microbit-v2/src/codal_app/microbithal.cpp
Lines 172 to 179 in fd99f40
So if we cannot support this V1 compatibility we might need to update the docs.