bbcmicrobit / micropython

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

docs: Improve `microbit.scale` example with accelerometer input. #772

Closed microbit-carlos closed 1 year ago

microbit-carlos commented 1 year ago

Using from_=(0, 2000) with accelerometer values means the returned value can be negative, so this PR updates it to from_=(-2000, 2000).