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)


  1.  You can't use keyword arguments with this function.
  2.  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.