RGB LCD Shield - Using extra pins on MCP23017

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
mystic1
 
Posts: 6
Joined: Tue Aug 21, 2012 12:12 pm

RGB LCD Shield - Using extra pins on MCP23017

Post by mystic1 »

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! :D

User avatar
adafruit_support_bill
 
Posts: 88099
Joined: Sat Feb 07, 2009 10:11 am

Re: RGB LCD Shield - Using extra pins on MCP23017

Post by adafruit_support_bill »

You can modify the RGB/LCD library to make those members public.

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”