adafruit / Adafruit_Blinka

Add CircuitPython hardware API and libraries to MicroPython & CPython devices
https://learn.adafruit.com/circuitpython-on-raspberrypi-linux
MIT License
437 stars 327 forks source link

GT911 touch sensor support for Adafruit Blinka #845

Closed leonard-voss closed 1 week ago

leonard-voss commented 2 weeks ago

Currently there is only this library available for the GT911 touch sensor:

https://github.com/rgrizzell/CircuitPython_GT911

I think that it only works on boards, on which native CircuitPython is running. Blinka-boards like the Raspberry Pi are not supported yet (or at least not without major configuration effort).

It would be really nice to use a standard CircuitPython library for this.

makermelissa commented 2 weeks ago

Blinka is actually designed to work with libraries like this. However, it is a little behind in the number of modules compared to CircuitPython. Is there a missing module that needs to be added to work with that library?

leonard-voss commented 2 weeks ago

Blinka is actually designed to work with libraries like this. However, it is a little behind in the number of modules compared to CircuitPython. Is there a missing module that needs to be added to work with that library?

Hey, thanks for replying. It seems like there are compatibility issues (with the Raspberry Pi) when using the library with Blinka. I described the whole thing in detail in this issue here.

makermelissa commented 2 weeks ago

Ok, that makes more sense. So the pins need to support open drain. Are you using a Pi 5 or something else?

leonard-voss commented 2 weeks ago

Ok, that makes more sense. So the pins need to support open drain. Are you using a Pi 5 or something else?

I'm currently using a Raspberry Pi 4 Model B. But I think the Raspberry Pi does not support Open Drain mode in general or am I wrong?

makermelissa commented 2 weeks ago

Currently Raspberry Pi 4 and Earlier use RPi,GPIO and Pi 5 uses libgpiod which is why I asked. I'm not sure about the hardware itself without doing some research, but as for the libraries, I believe libgpiod had an open drain option.

leonard-voss commented 2 weeks ago

Currently Raspberry Pi 4 and Earlier use RPi,GPIO and Pi 5 uses libgpiod which is why I asked. I'm not sure about the hardware itself without doing some research, but as for the libraries, I believe libgpiod had an open drain option.

OK. But then it all seems to support my suspicion. What is the best way to proceed now?

leonard-voss commented 1 week ago

Alright, so I solved the issue (i had an wiring issue) and now the library works fine. Thanks for your support!