I'm trying to use the Adafruit RGBLCDShield library to control a MCP23017 with an attached LCD (wired the same way as the shield is), but utilize the remaining pins on the MCP23017 for other purposes.
Essentially, instead of reading the status of 5 switches, I'll be using the additional pins on the MCP to control a handful of relays.
I tried using the library's _pinMode or _digitalWrite methods, but found out that they private (meaning, can't be used directly).
Without writing my own library, is there an easy way to do this?
Thank you for any help!
RGB LCD Shield - Using extra pins on MCP23017
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- mystic1
- Posts: 6
- Joined: Tue Aug 21, 2012 12:12 pm
- adafruit_support_bill
- Posts: 88099
- Joined: Sat Feb 07, 2009 10:11 am
Re: RGB LCD Shield - Using extra pins on MCP23017
You can modify the RGB/LCD library to make those members public.
Please be positive and constructive with your questions and comments.