I have managed to reduce the file to 6Kb and it is supposed to be on the devices internal storage but it doesn't show on screen.
This is my code.
Code: Select all
from m5stack import *
from m5ui import *
clear_bg(0x222222)
btnA = M5Button(name="ButtonA", text="ButtonA", visibility=False)
btnB = M5Button(name="ButtonB", text="ButtonB", visibility=False)
btnC = M5Button(name="ButtonC", text="ButtonC", visibility=False)
image1 = M5Img(1, 1, "res/Gbkg.bmp", True)
rectangle5 = M5Rect(58, 150, 30, 30, 0xFFFFFF, 0xFFFFFF)
pos = None
image1.changeImg("res/default.jpg")
pos = 0
while True:
image1.show()
image1.setPosition(x=pos)
pos = pos + 1
wait(1)
wait(0.001)