Skip to content

Add support for unPhone 9#74

Merged
ThomasFarstrike merged 1 commit intoMicroPythonOS:mainfrom
jedie:unPhone
Mar 11, 2026
Merged

Add support for unPhone 9#74
ThomasFarstrike merged 1 commit intoMicroPythonOS:mainfrom
jedie:unPhone

Conversation

@jedie
Copy link
Copy Markdown
Contributor

@jedie jedie commented Mar 3, 2026

https://unphone.net/

What worked:

  • hx8357d Display and XPT2046 touch screen works
  • Turn display backlight on/off via TCA9555 chip
  • Buttons

TODOs:

  • Use LEDs
  • LoRa
  • IR

.../lib/drivers/display/hx8357d/ is a not modified copy from https://github.com/lvgl-micropython/lvgl_micropython/tree/main/api_drivers/common_api_drivers/display/hx8357d

.../lib/drivers/indev/xpt2046.py based on https://github.com/lvgl-micropython/lvgl_micropython/blob/main/api_drivers/common_api_drivers/indev/xpt2046.py but is modified: Because of the shared SPI bus for SPI for hx8357d display and xpt2046 touch controller. For this i add the management of CS pins for reading the touch controller.
Let's discuss how to add this to upstream in lvgl-micropython/lvgl_micropython#536

@jedie jedie force-pushed the unPhone branch 3 times, most recently from cda95d2 to 9305446 Compare March 3, 2026 23:44
@ThomasFarstrike
Copy link
Copy Markdown
Contributor

It's coming together nicely! Let me know when you think it's ready for merging :-)

@jedie jedie force-pushed the unPhone branch 5 times, most recently from c5bf0c1 to 70c7457 Compare March 6, 2026 08:21
@jedie jedie force-pushed the unPhone branch 9 times, most recently from cc1a127 to 5152a06 Compare March 8, 2026 21:13
@jedie jedie force-pushed the unPhone branch 5 times, most recently from dc3c2bf to fbb1cd3 Compare March 9, 2026 16:19
@jedie jedie changed the title WIP: Add support for unPhone 9 Add support for unPhone 9 Mar 9, 2026
@jedie
Copy link
Copy Markdown
Contributor Author

jedie commented Mar 9, 2026

@ThomasFarstrike There is still thing to adapt. But the ground work is done. So i would say to merge this and create additional PRs.

https://unphone.net/

What worked:

- hx8357d Display and XPT2046 touch screen works
- Turn display backlight on/off via TCA9555 chip
- Buttons

TODOs:

- Use LEDs
- LoRa
- IR

`.../lib/drivers/display/hx8357d/` is a not modified copy from
https://github.com/lvgl-micropython/lvgl_micropython/tree/main/api_drivers/common_api_drivers/display/hx8357d

`.../lib/drivers/indev/xpt2046.py` based on
https://github.com/lvgl-micropython/lvgl_micropython/blob/main/api_drivers/common_api_drivers/indev/xpt2046.py
but is modified: Because of the shared SPI bus for SPI for hx8357d display and xpt2046 touch
controller. For this i add the management of `CS` pins for reading the touch controller.
Let's discuss how to add this to upstream in
lvgl-micropython/lvgl_micropython#536
@ThomasFarstrike
Copy link
Copy Markdown
Contributor

Great work @jedie , let's merge and then take it from there!

@ThomasFarstrike ThomasFarstrike merged commit 2f4adfc into MicroPythonOS:main Mar 11, 2026
2 checks passed
jedie added a commit to jedie/MicroPythonOS that referenced this pull request Mar 28, 2026
https://unphone.net/

What worked:

- hx8357d Display and XPT2046 touch screen works
- Turn display backlight on/off via TCA9555 chip
- Buttons

TODOs:

- Use LEDs
- LoRa
- IR

`.../lib/drivers/display/hx8357d/` is a not modified copy from
https://github.com/lvgl-micropython/lvgl_micropython/tree/main/api_drivers/common_api_drivers/display/hx8357d

`.../lib/drivers/indev/xpt2046.py` based on
https://github.com/lvgl-micropython/lvgl_micropython/blob/main/api_drivers/common_api_drivers/indev/xpt2046.py
but is modified: Because of the shared SPI bus for SPI for hx8357d display and xpt2046 touch
controller. For this i add the management of `CS` pins for reading the touch controller.
Let's discuss how to add this to upstream in
lvgl-micropython/lvgl_micropython#536
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants