Hello,
I am trying to use the MCP23017 expander chip to run my Adafruit LCD. I have the LCD running completely fine and perfect without the expander. However I am trying to find out how I declare what the int value is for the expander chip.
int lcdScreen= Lcd.lcdInit(LCD_ROWS, // number of row supported by LCD
LCD_COLUMNS, // number of columns supported by LCD
LCD_BITS, // number of bits used to communicate to LCD
11, // LCD RS pin
10, // LCD strobe pin
0, // LCD data bit 1
1, // LCD data bit 2
2, // LCD data bit 3
3, // LCD data bit 4
0, // LCD data bit 5
0, // LCD data bit 6
0, // LCD data bit 7
0); // LCD data bit 8
Here is how I initialize the LCD without using the expander. So how to do I declare what the value is when I am using the expander chip?
final GpioPinDigitalOutput light = gpio.provisionDigitalOutputPin(gpioProvider, MCP23017Pin.GPIO_B2, "MyOutput-B0", PinState.LOW);
How do I get that value into the int value for the LCD data bit?
Thanks for your help!