You've already forked uiflow-micropython
mirror of
https://github.com/m5stack/uiflow-micropython.git
synced 2026-05-20 10:39:27 -07:00
da6bb81f49
Signed-off-by: lbuque <1102390310@qq.com>
43 lines
984 B
Python
43 lines
984 B
Python
# SPDX-FileCopyrightText: 2024 M5Stack Technology CO LTD
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
from .. import app_base
|
|
from .. import res
|
|
import M5
|
|
|
|
|
|
class EzDataApp(app_base.AppBase):
|
|
def __init__(self, icos) -> None:
|
|
self._lcd = icos
|
|
super().__init__()
|
|
|
|
def on_install(self):
|
|
M5.Lcd.drawImage(res.EZDATA_UNSELECTED_IMG, 5 + 62 * 4, 0)
|
|
|
|
def on_view(self):
|
|
M5.Lcd.drawImage(res.EZDATA_SELECTED_IMG, 5 + 62 * 4, 0)
|
|
|
|
self._origin_x = 0
|
|
self._origin_y = 56
|
|
M5.Lcd.fillRect(self._origin_x, self._origin_y, 320, 184, 0x000000)
|
|
|
|
def on_ready(self):
|
|
pass
|
|
|
|
def on_hide(self):
|
|
pass
|
|
|
|
def on_exit(self):
|
|
M5.Lcd.drawImage(res.EZDATA_UNSELECTED_IMG, 5 + 62 * 4, 0)
|
|
del self._origin_x, self._origin_y
|
|
|
|
# async def _btna_event_handler(self, fw):
|
|
# pass
|
|
|
|
# async def _btnb_event_handler(self, fw):
|
|
# pass
|
|
|
|
# async def _btnc_event_handler(self, fw):
|
|
# pass
|