Code to useIf you want to display an image from a pre-prepared buffer.
from microbit import * i = Image(5,5,b'\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08') display.show(i)
- You can't use keyword arguments with this function.
- The buffer parameter must support the buffer protocol - i.e. a bytearray or a string of bytes. You can't pass a Python list to this method.