Notifications
Clear all

wrappers

1 Posts
1 Users
0 Likes
612 Views
(@queenidog)
Member
Joined: 5 years ago
Posts: 17
Topic starter  

I have two port expanders, one at address #21 and the other at #22.  Each is connected to 16 LEDs.  In order to get all 32 LEDs on, I have to issue two commands, one for each address.   I asked this question at Adafruit and was told to create a Wrapper to encompass the two commands.  How is this done?   I've looked at a number of Google hits but they are all so complex I don't know where to start.  I'm using MCP23017 port expanders and the Centipede library (best keywords).   I think writing libraries should be a topic  for future consideration.


   
Quote