Help using an LCD Display
ookkies
Posts: 5
I ordered an LCD display to use with my Activity Board, but i'm having trouble finding a code to use it with. It has GND, VCC, SDA, and SCL connections.
The only tutorial I could find was this http://learn.parallax.com/tutorials/language/propeller-c/propeller-c-simple-protocols/half-duplex-serial but it's using different pins for the incoming data. Can anyone lead me in the right direction?
For reference, this is what I have https://www.amazon.com/gp/product/B01DKETWO2
The only tutorial I could find was this http://learn.parallax.com/tutorials/language/propeller-c/propeller-c-simple-protocols/half-duplex-serial but it's using different pins for the incoming data. Can anyone lead me in the right direction?
For reference, this is what I have https://www.amazon.com/gp/product/B01DKETWO2
Comments
i2c_newbus(int sclPin, int sdaPin, int sclDrive);
int i2c_out(i2c *busID, int i2cAddr, int memAddr, int memAddrCount, const unsigned char *data, int dataCount);
What would I put for i2c*busID and const unsigned char*data? I assume int dataCount would be a variable that has what I want to be outputted?
#include "simpletools.h"
i2c *eeBus;
int main()
{
eeBus = i2c_newbus(14, 13, 0);
i2c_out(eeBus, 0x27,
NULL, 0, "abcdefg", 8 );
while(i2c_busy(eeBus, 0x27));
char testStr[] = {0, 0, 0, 0, 0, 0, 0, 0};
i2c_in(eeBus, 0x27,
NULL, 0, testStr, 8 );
print("testStr = %s \n", testStr);
}
https://www.arduinolibraries.info/libraries/liquid-crystal-i2-c
https://github.com/parallaxinc/Simple-Libraries/tree/Community/Learn/Simple Libraries/Display/liblcdParallel