Skip to content

Conversation

BlitzCityDIY
Copy link
Contributor

updating power_up() for the 2.13" flex monochrome display. takes an option PID argument in the init

@BlitzCityDIY
Copy link
Contributor Author

@ladyada updating power_up() for the 2.13" flex monochrome display

@ladyada
Copy link
Member

ladyada commented Oct 7, 2025

ugh i dont like doing it this way, what is the command that's incompatible?

@BlitzCityDIY
Copy link
Contributor Author

@ladyada its the panel setting and CDI

self.command(_IL0373_PANEL_SETTING, bytearray([0x1F, 0x0D]))
self.command(_IL0373_CDI, bytearray([0x97]))

for flex, compared to

self.command(_IL0373_PANEL_SETTING, bytearray([0xCF]))
self.command(_IL0373_CDI, bytearray([0x37]))

@ladyada
Copy link
Member

ladyada commented Oct 7, 2025

i just dont wanna do PID tests because the product can change. is there a way we can subclass it for different products, kinda like we do in Arduino?

@BlitzCityDIY
Copy link
Contributor Author

gotcha, makes sense. just pushed the subclass and removed the PID argument

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