from m5stack import *
from m5stack_ui import *
from uiflow import *
import os
import time

screen = M5Screen()
screen.clean_screen()
screen.set_screen_bg_color(0xFFFFFF)
screen.set_screen_brightness(30)

for file in os.listdir('/sd/emoji'):
  if file in ('.', '..'):
    continue
  
  screen.clean_screen()
  filename = "/sd/emoji/{}".format(file)
  img = M5Img(filename, x=80, y=40, parent=None)
  label = M5Label(file,20,220,0x00,FONT_MONT_12)
  label.set_pos((320-label.get_width())//2, 220)
  time.sleep(10)
  img.delete()
  label.delete()

from m5stack import *
from m5stack_ui import *
from uiflow import *
import os
import time

screen = M5Screen()
screen.clean_screen()
screen.set_screen_bg_color(0xFFFFFF)
screen.set_screen_brightness(30)

for file in os.listdir('/sd/emoji'):
  if file in ('.', '..'):
    continue
  
  screen.clean_screen()
  filename = "/sd/emoji/{}".format(file)
  img = M5Img(filename, x=80, y=40, parent=None)
  label = M5Label(file,20,220,0x00,FONT_MONT_12)
  label.set_pos((320-label.get_width())//2, 220)
  time.sleep(10)
  img.delete()
  label.delete()
