Adafruit 16x2 LCD doesn't turn on with Pine64
#13
(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!! Big Grin  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.
  Reply


Messages In This Thread

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pine64 and Nexdoc mcf 11 19,170 12-05-2017, 03:10 AM
Last Post: Pander
  Mounting RPI3 "hats" on Pine64 gczuczy 5 9,877 07-30-2017, 10:29 AM
Last Post: KnReLe
  adafruit ultimate gps hat mrjake 3 6,734 02-16-2017, 08:15 PM
Last Post: mrjake
  Analog Amplifier for Pine64 mbt28 2 5,069 02-09-2017, 08:46 AM
Last Post: mbt28
  ZJ080NA-08A and pine64 mbt28 4 6,674 10-10-2016, 05:12 AM
Last Post: mbt28
  Euler bus/Pi2 bus on Pine64 xxvolwarexx 1 5,789 10-05-2016, 06:35 PM
Last Post: pfeerick
Exclamation Pine64+ not starting (never) Alex89cgn 1 3,402 08-15-2016, 12:05 PM
Last Post: MarkHaysHarris777
  Pine64 Eagle LBR openhardwarecoza 3 5,791 08-01-2016, 11:05 AM
Last Post: xalius
  Setting up UART2 for Adafruit GPS hat stephen fleming 1 3,476 05-13-2016, 03:20 PM
Last Post: peterz

Forum Jump:


Users browsing this thread: 1 Guest(s)