Closed microbit-mark closed 3 years ago
The documentation for display.get_pixel(x,y) https://microbit-micropython.readthedocs.io/en/v2-docs/display.html#microbit.display.get_pixel states that the LED will return a value between 0-9
display.get_pixel(x,y)
0
9
On V2 MicroPython this appears to return 255 for a fully bright LED
255
To replicate
>>> from microbit import * >>> display.clear() >>> display.set_pixel(2, 2, 9) >>> display.get_pixel(2,2)
V1 returns 9
V2 returns 255
The documentation for
display.get_pixel(x,y)
https://microbit-micropython.readthedocs.io/en/v2-docs/display.html#microbit.display.get_pixel states that the LED will return a value between0
-9
On V2 MicroPython this appears to return
255
for a fully bright LEDTo replicate
V1 returns
9
V2 returns
255