diff --git a/apps/com.example.app1/res/mipmap-mdpi/launcher_icon.png b/apps/com.example.app1/res/mipmap-mdpi/launcher_icon.png deleted file mode 100644 index f28f284c..00000000 Binary files a/apps/com.example.app1/res/mipmap-mdpi/launcher_icon.png and /dev/null differ diff --git a/apps/com.example.app1/res/mipmap-mdpi/launcher_icon.png b/apps/com.example.app1/res/mipmap-mdpi/launcher_icon.png new file mode 120000 index 00000000..ce223be1 --- /dev/null +++ b/apps/com.example.app1/res/mipmap-mdpi/launcher_icon.png @@ -0,0 +1 @@ +../../../../icon_64x64.png \ No newline at end of file diff --git a/apps/com.example.app2/res/mipmap-mdpi/launcher_icon.png b/apps/com.example.app2/res/mipmap-mdpi/launcher_icon.png deleted file mode 100644 index f28f284c..00000000 Binary files a/apps/com.example.app2/res/mipmap-mdpi/launcher_icon.png and /dev/null differ diff --git a/apps/com.example.app2/res/mipmap-mdpi/launcher_icon.png b/apps/com.example.app2/res/mipmap-mdpi/launcher_icon.png new file mode 120000 index 00000000..ce223be1 --- /dev/null +++ b/apps/com.example.app2/res/mipmap-mdpi/launcher_icon.png @@ -0,0 +1 @@ +../../../../icon_64x64.png \ No newline at end of file diff --git a/apps/com.example.cputest/res/mipmap-mdpi/launcher_icon.png b/apps/com.example.cputest/res/mipmap-mdpi/launcher_icon.png deleted file mode 100644 index f28f284c..00000000 Binary files a/apps/com.example.cputest/res/mipmap-mdpi/launcher_icon.png and /dev/null differ diff --git a/apps/com.example.cputest/res/mipmap-mdpi/launcher_icon.png b/apps/com.example.cputest/res/mipmap-mdpi/launcher_icon.png new file mode 120000 index 00000000..ce223be1 --- /dev/null +++ b/apps/com.example.cputest/res/mipmap-mdpi/launcher_icon.png @@ -0,0 +1 @@ +../../../../icon_64x64.png \ No newline at end of file diff --git a/apps/com.example.launcher/res/mipmap-mdpi/launcher_icon.png b/apps/com.example.launcher/res/mipmap-mdpi/launcher_icon.png deleted file mode 100644 index f28f284c..00000000 Binary files a/apps/com.example.launcher/res/mipmap-mdpi/launcher_icon.png and /dev/null differ diff --git a/apps/com.example.launcher/res/mipmap-mdpi/launcher_icon.png b/apps/com.example.launcher/res/mipmap-mdpi/launcher_icon.png new file mode 120000 index 00000000..ce223be1 --- /dev/null +++ b/apps/com.example.launcher/res/mipmap-mdpi/launcher_icon.png @@ -0,0 +1 @@ +../../../../icon_64x64.png \ No newline at end of file diff --git a/apps/com.example.lvgltest/res/mipmap-mdpi/launcher_icon.png b/apps/com.example.lvgltest/res/mipmap-mdpi/launcher_icon.png deleted file mode 100644 index f28f284c..00000000 Binary files a/apps/com.example.lvgltest/res/mipmap-mdpi/launcher_icon.png and /dev/null differ diff --git a/apps/com.example.lvgltest/res/mipmap-mdpi/launcher_icon.png b/apps/com.example.lvgltest/res/mipmap-mdpi/launcher_icon.png new file mode 120000 index 00000000..ce223be1 --- /dev/null +++ b/apps/com.example.lvgltest/res/mipmap-mdpi/launcher_icon.png @@ -0,0 +1 @@ +../../../../icon_64x64.png \ No newline at end of file diff --git a/apps/com.example.memtest/res/mipmap-mdpi/launcher_icon.png b/apps/com.example.memtest/res/mipmap-mdpi/launcher_icon.png deleted file mode 100644 index f28f284c..00000000 Binary files a/apps/com.example.memtest/res/mipmap-mdpi/launcher_icon.png and /dev/null differ diff --git a/apps/com.example.memtest/res/mipmap-mdpi/launcher_icon.png b/apps/com.example.memtest/res/mipmap-mdpi/launcher_icon.png new file mode 120000 index 00000000..ce223be1 --- /dev/null +++ b/apps/com.example.memtest/res/mipmap-mdpi/launcher_icon.png @@ -0,0 +1 @@ +../../../../icon_64x64.png \ No newline at end of file diff --git a/apps/com.example.threadtest/res/mipmap-mdpi/launcher_icon.png b/apps/com.example.threadtest/res/mipmap-mdpi/launcher_icon.png deleted file mode 100644 index f28f284c..00000000 Binary files a/apps/com.example.threadtest/res/mipmap-mdpi/launcher_icon.png and /dev/null differ diff --git a/apps/com.example.threadtest/res/mipmap-mdpi/launcher_icon.png b/apps/com.example.threadtest/res/mipmap-mdpi/launcher_icon.png new file mode 120000 index 00000000..ce223be1 --- /dev/null +++ b/apps/com.example.threadtest/res/mipmap-mdpi/launcher_icon.png @@ -0,0 +1 @@ +../../../../icon_64x64.png \ No newline at end of file diff --git a/boot.py b/boot.py index c8e8047d..b9ec946e 100644 --- a/boot.py +++ b/boot.py @@ -61,7 +61,7 @@ i2c_bus = i2c.I2C.Bus(host=I2C_BUS, scl=TP_SCL, sda=TP_SDA, freq=I2C_FREQ, use_l touch_dev = i2c.I2C.Device(bus=i2c_bus, dev_id=TP_ADDR, reg_bits=TP_REGBITS) indev=cst816s.CST816S(touch_dev,startup_rotation=lv.DISPLAY_ROTATION._180) # button in top left, good -task_handler.TaskHandler() +th = task_handler.TaskHandler() display.set_rotation(lv.DISPLAY_ROTATION._90) # Custom touch interrupt handler: diff --git a/main.py b/main.py index 49f361af..a4045089 100644 --- a/main.py +++ b/main.py @@ -39,7 +39,7 @@ drawer=None wifi_screen=None drawer_open=False -lv.screen_active().set_style_bg_color(lv.color_hex(0x000000), 0) +lv.screen_active().set_style_bg_color(lv.color_hex(0x444444), 0) def open_drawer(): global drawer_open @@ -112,6 +112,7 @@ def update_time(timer): seconds = (ticks // 1000) % 60 milliseconds = ticks % 1000 time_label.set_text(f"{hours:02d}:{minutes:02d}:{seconds:02d}.{milliseconds:03d}") + lv.timer_create(update_time, CLOCK_UPDATE_INTERVAL, None) notification_bar.add_event_cb(toggle_drawer, lv.EVENT.CLICKED, None)