Files
2024-09-12 15:40:17 +08:00

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