- Wed Dec 09, 2015 11:29 am
#186433
I have a BOB13601 SX1509 (16 way I/O Expander board) hooked up to a Pro Mini, and using the supplied SparkFun Library can get most functions relating to LED control to work fine, but there is one issue I cannot seem to solve. If I set an LED to BLINK or BREATHE it does just that, but I cannot find a way to stop it! If I reset the pin to "normal" digitalWrite mode, and set the pin HIGH my LED is on full time (as it should be), but once I set it LOW it continues to BLINK or BREATHE. I've tried lots of ways to make it revert to ON/OFF control, such as setting the pin to an INPUT, then to OUTPUT, but no success so far. I'm no software expert, but I've looked through the library code and the Data Sheet but cannot solve this issue. I can call a RESET to set all pins back to an undefined state, but that means subsequently resetting all the pins I am using (ideally all 16), which causes a visible glitch that is not acceptable for my application, where I am monitoring a number of functions, and some functions (normally only one at a time) need to BLINK to show they are active, while other pins need to be ON or OFF. If anyone can offer any suggested solutions for me to try I would be really grateful! Thanks