You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
lilygo_t_watch_s3_plus: fix orientation
This commit is contained in:
@@ -36,6 +36,7 @@ mpos.ui.main_display = st7789.ST7789(
|
||||
rgb565_byte_swap=True,
|
||||
backlight_pin=45,
|
||||
backlight_on_state=st7789.STATE_PWM,
|
||||
offset_y=80
|
||||
) # triggers lv.init()
|
||||
mpos.ui.main_display.init()
|
||||
mpos.ui.main_display.set_power(True)
|
||||
@@ -48,6 +49,9 @@ touch_dev = i2c.I2C.Device(bus=i2c_bus, dev_id=ft6x36.I2C_ADDR, reg_bits=ft6x36.
|
||||
import pointer_framework
|
||||
indev=ft6x36.FT6x36(touch_dev, startup_rotation=pointer_framework.lv.DISPLAY_ROTATION._180)
|
||||
|
||||
mpos.ui.main_display.set_rotation(lv.DISPLAY_ROTATION._180)
|
||||
|
||||
|
||||
# TODO:
|
||||
# - battery
|
||||
# - IMU
|
||||
|
||||
Reference in New Issue
Block a user