Skip to content

Add support for 2.8" round TURZX USB display (PID 0x0028)#995

Open
OctaNebula wants to merge 1 commit intomathoudebine:mainfrom
OctaNebula:add-2.8-round-usb-support
Open

Add support for 2.8" round TURZX USB display (PID 0x0028)#995
OctaNebula wants to merge 1 commit intomathoudebine:mainfrom
OctaNebula:add-2.8-round-usb-support

Conversation

@OctaNebula
Copy link
Copy Markdown

Register the 2.8" round panel (480x480, USB Product ID 0x0028) with the existing TURZX USB comm class. This is the new-generation USB variant of the 2.8" screen, distinct from the older UART-based 2.1"/2.8" models.

Changes:

  • Add PID 0x0028 to the PRODUCT_ID table in lcd_comm_turing_usb.py
  • Add a new size option in configure.py for the GUI dropdown
  • Fix a latent bug in load_config_values where .replace() on size strings could produce corrupted values like '2.1" / 2.1" / 2.8"' due to substring matching; switched to equality checks instead (otherwise we run into an IndexError that is fixable by resetting the YAML but that's annoying)
  • Update README supported sizes list

Register the 2.8" round panel (480x480, USB Product ID 0x0028) with the
existing TURZX USB comm class. This is the new-generation USB variant of
the 2.8" screen, distinct from the older UART-based 2.1"/2.8" models.

Changes:
- Add PID 0x0028 to the PRODUCT_ID table in lcd_comm_turing_usb.py
- Add a new size option in configure.py for the GUI dropdown
- Fix a latent bug in load_config_values where .replace() on size strings
  could produce corrupted values like '2.1" / 2.1" / 2.8"' due to
  substring matching — switched to equality checks instead
- Update README supported sizes list
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.

1 participant