Skip to content

PYPORTAL: pindefs incorrect#1540

Merged
tannewt merged 1 commit into
adafruit:masterfrom
TG-Techie:patch-6
Feb 14, 2019
Merged

PYPORTAL: pindefs incorrect#1540
tannewt merged 1 commit into
adafruit:masterfrom
TG-Techie:patch-6

Conversation

@TG-Techie
Copy link
Copy Markdown

@jerryneedell suggested the pins could be wrong when I told him I was getting reading that didn't change, having corrected the pinout to match the schematic I was given it now works!

used:

ts = adafruit_touchscreen.Touchscreen(board.TOUCH_XL, board.TOUCH_XR,
                                      board.TOUCH_YD, board.TOUCH_YU,
                                      calibration=((5200, 59000), (5800, 57000)),
                                      size=(320, 240))

while True:
    p = ts.touch_point
    if p:
        time.sleep(.5)
        print(p)

@jerryneedell  suggested the pins could be wrong when I told him I was getting reading that didn't change, having corrected the pinout to match the schematic I was given it now works! 

used:
```
ts = adafruit_touchscreen.Touchscreen(board.TOUCH_XL, board.TOUCH_XR,
                                      board.TOUCH_YD, board.TOUCH_YU,
                                      calibration=((5200, 59000), (5800, 57000)),
                                      size=(320, 240))

while True:
    p = ts.touch_point
    if p:
        time.sleep(.5)
        print(p)
```
@dhalbert dhalbert requested review from ladyada and tannewt February 13, 2019 03:46
@ladyada
Copy link
Copy Markdown
Member

ladyada commented Feb 13, 2019

@TG-Techie you have an old firmware, use this for now
self.ts = adafruit_touchscreen.Touchscreen(microcontroller.pin.PB01, microcontroller.pin.PB08,
microcontroller.pin.PA06, microcontroller.pin.PB00,
calibration=((5200, 59000), (5800, 57000)),
size=(320, 240))

@TG-Techie
Copy link
Copy Markdown
Author

TG-Techie commented Feb 13, 2019 via email

@ladyada
Copy link
Copy Markdown
Member

ladyada commented Feb 13, 2019

all good - im just letting u know how to fix asap :)

@TG-Techie
Copy link
Copy Markdown
Author

TG-Techie commented Feb 13, 2019 via email

@TG-Techie
Copy link
Copy Markdown
Author

TG-Techie commented Feb 13, 2019 via email

@TG-Techie
Copy link
Copy Markdown
Author

TG-Techie commented Feb 13, 2019 via email

@TG-Techie
Copy link
Copy Markdown
Author

TG-Techie commented Feb 13, 2019 via email

@TG-Techie
Copy link
Copy Markdown
Author

oops: wrong thread

Copy link
Copy Markdown
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thank you!

@tannewt tannewt merged commit d6cbd5b into adafruit:master Feb 14, 2019
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.

3 participants