08-26-2016, 05:20 PM
(This post was last modified: 08-27-2016, 02:45 AM by pfeerick.
Edit Reason: added link, a bit later than I expected!
)
(08-26-2016, 07:36 AM)KnReLe Wrote: As I actually had one of these display units lying around here from when I bought it back in 2013 sometime, I hooked it up with the pull-up resistors in place. Then I found the test C programs for it that I had made back then and that code compiled and ran without changes, and gave me some text on the screen. (Should anyone be interested, I did attach a tarball with the code in it.)
I had a look at the Adafruit library, it seems to want to encompass all sorts of LCD interfacing, including direct via GPIOs so it wants to use device-specific libraries such as Rpi.GPIO or a Beaglebone equivalent, Adafruit_BBIO. So it looks like what may be needed is some kind of «Pine.GPIO» variation of this.
I also did try the Adafruit library but it said it «could not detemine platform», which is fair i suppose -- as it hasn't been told that there are such things as PineA64...
Thanks for that! Videos are always handy in showing something working... and who doesn't like blinky leds!! I'm sure the OP will be glad to know that merely wth the addition of the two pullups, either to the pine64 or the display board, it will work one way or another.
Since I can't be bothered getting SMD resistors and populating the two spots for them, I'll probably just add them to the bottom of the board with standard 1/8 resistors, since that will then make the I2C RPi compliant for any expansion boards I use.
There is a Pine64 port of the Rpi.GPIO library for Python. It works well for the brief tests I've done so far... mainly just turning I/O pins on and off. Only failure so far was related to the pine64 configuration, not the library, and is a known probem.