Open picpic020960 opened 2 hours ago
damned 7796 issues. This single display IC is going to be the bane of my existence.
I can fix the reversed text, that's not too big of an issue.
there are 2 possible things that can fix the touch.. The first is trying to set the startup rotation of the display.
import ft6x06
touch = ft6x06.FT6x06(
...
startup_rotation=pointer_framework.lv.DISPLAY_ROTATION._180
)
If that doesn't correct the problem you can do a display calibration and that should fix it.
import ft6x06
touch = ft6x06.FT6x06(
...
)
if not touch.is_calibrated:
touch.calibrate()
for the time being to correct the problem with the text being backwards... point the display at a mirror and look at the mirror... :smile:, I'm joking...
Until I am able to get around to updating the driver I am going to have you override part of the display driver...
import st7796
st7796.ST7796._ORIENTATION_TABLE = (0x40, 0xE0, 0x80, 0x20)
# create the driver as usual.
Bonjour Kevin , This vidéo for three issues : 1 - 'hello world' IS inversed 2 - the scroll IS inverted [3 - how to control the backlight] 3 - are the colors rights ? St7796 with ft6x06 (typo on CHIP_ID in ft6x06.py ?) Thanks for help (After this , return to unix port) https://github.com/user-attachments/assets/c1869a39-ac58-43c0-bb15-db4584edc13e
Édit : OK for backlight : backlight_on_state=st7796.STATE_PWM,