Oh I see, you mean the hardware shutdown mode SDB on pin 24?
I didn't notice that in the datasheet before. It must be pulled high on the HAT.
It appears that you can use the software shutdown to make the LEDs flash, without manually setting them all off and then back to their current values or by enabling/disabling the LED outputs individually. The states of all the registers are kept during a 'shutdown', only the outputs are turned off. Just toggle register 0, bit 0, off and on regularly to make everything flash. That could simplify some code.
The interesting things you (unfortunately) find buried in datasheets!
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Oh I see, you mean the hardware shutdown mode SDB on pin 24?
I didn't notice that in the datasheet before. It must be pulled high on the HAT.
It appears that you can use the software shutdown to make the LEDs flash, without manually setting them all off and then back to their current values or by enabling/disabling the LED outputs individually. The states of all the registers are kept during a 'shutdown', only the outputs are turned off. Just toggle register 0, bit 0, off and on regularly to make everything flash. That could simplify some code.
The interesting things you (unfortunately) find buried in datasheets!