Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: New 2.8" TFT screens using new U2 touchscreen controller

  1. #1
    Member
    Join Date
    Apr 2016
    Location
    South Carolina, USA
    Posts
    25

    New 2.8" TFT screens using new U2 touchscreen controller

    I've starting testing the newer TFT touchscreens that have the U2 touch controller and they are working very well with Paul's new ts.setRotation() that he added in 1.41... However, the new screens require ts.setRotation(3) whereas the old screens require ts.setRotation(1). Does anyone know of a way to interrogate the touch controller to know whether it's using the U1 or the newer U2 controller? I'd like to only have one firmware... i know it's only one line of code but I'll have customers using units with both screens and i'd prefer to have only one firmware download for updates.

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    11,528
    Not sure if there is a way ...

    You could use an EEPROM byte and interrogate the user on first usage or setup? Assuming once paired it will stay in place.

    If unset display it - get the touch on "RED" - see which half of the screen it is on - rotate as needed and ask again. Then save the orientation for future use

    Click image for larger version. 

Name:	TouchRed.png 
Views:	21 
Size:	6.9 KB 
ID:	12864

  3. #3
    Member
    Join Date
    Apr 2016
    Location
    South Carolina, USA
    Posts
    25
    Quote Originally Posted by defragster View Post
    Not sure if there is a way ...

    You could use an EEPROM byte and interrogate the user on first usage or setup? Assuming once paired it will stay in place.

    If unset display it - get the touch on "RED" - see which half of the screen it is on - rotate as needed and ask again. Then save the orientation for future use

    Click image for larger version. 

Name:	TouchRed.png 
Views:	21 
Size:	6.9 KB 
ID:	12864

    Thank you defragster. That is a good work around... especially the idea for the calibration screen.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •