08-26-2016, 02:58 AM
(08-26-2016, 01:11 AM)pfeerick Wrote:(08-25-2016, 08:53 PM)MarkHaysHarris777 Wrote: i can see from your print-out of the i2c registers that it is not detecting the address of the LCD. How are you powering it? Double check your connections. Make sure its on the correct bus...
Mark, I think you need to have a another look at the first post, specifically the picture... you can clearly see the LCD is on a Adafruit LCD Pi Plate, meaning it is i2c, with all comms and power comming from the pi bus. Plus, there is no room for incorrect wiring as assembly is as simply as place LCD here and solder connectors, etc.
My question here would be does I2C work out of the box with a particular debian or ubuntu image, and if not, what configuration is needed to get it up and running?
Although that question might not have been directed at me -- I have one data-point's worth of answer to it.
i2c on the bus in question here, TWI-1 or /dev/i2c-1 as it appears in the Linux file system, does have all necessary support bits in place on the Debian 3.10.102-3-pine64-longsleep kernel. (I had it working with the previous -1- and -2- ones as well, but those are obsolete.) These are ready for use, though one will want to install the i2c-tools and libi2c-dev (and whatever other similar packages apply to python) to be able to use them for anything interesting. Reading and writing to simple devices will be the same.
So much for the software side. Hardware-wise, we have to have something connected of course, and if the i2c-capable device or board connected was originally designed for Raspberry Pi, the good news is that there is a good chance of it working, and the less-than perfectly good news is that we have to add the pull-up resistors to the two i2c lines since they are not present from before.