johntech2014 wrote:martinayotte wrote:johntech2014 wrote:but I don't see any way to turn on multiple LED's at one time.Code: Select allvoid Adafruit_MCP23017::writeGPIOAB(uint16_t ba) {
Ok I did see that somewhere in the AdaFruit library but have no clue what it means. I was also searching the AdaFruit site for information on that and how to use it, nothing concrete that I could figure out. I'll just keep looking.
Thanks
You need to send it a 16 bit integer. Each bit representing an output. 0 = all off. 1 = led 1 on, 2 = led 2 on, 3 would be both on. Simply used binary functions. 255*256+255 = would be all light.