How do you have them wired? If you mean 595s, review the description of the two clock pins. The led is flashing between the two spi.send()s, I'll wager. I think the way to fix is to put the latch clock on a different gpio pin and pulse it high after you send the two bytes to it, then it will only latch the data in the shift register once it has all the data.
Also, why two spi.send?
Why not spi.send([i>>8,i],b8)?
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.
959? Do you mean 595?
How do you have them wired? If you mean 595s, review the description of the two clock pins. The led is flashing between the two spi.send()s, I'll wager. I think the way to fix is to put the latch clock on a different gpio pin and pulse it high after you send the two bytes to it, then it will only latch the data in the shift register once it has all the data.
Also, why two spi.send?
Why not spi.send([i>>8,i],b8)?