Hi - which Espruino board are you using? I'm pretty sure the 3rd pin won't be right (that's usually the 3.3v pin) - I think if you do that you could cause some serious damage!
I'd also make sure that GND of all boards is connected together - it can often be a big cause of problems if that isn't connected.
In terms of software, what you're doing looks good. The latch is often active low though, so I'd try:
Or potentially the problem is that digitalPulse is asyncronous? It will be working while you are writing data using displayPixel. I'm not sure if that's your intention? If not:
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.
Hi - which Espruino board are you using? I'm pretty sure the 3rd pin won't be right (that's usually the 3.3v pin) - I think if you do that you could cause some serious damage!
I'd also make sure that GND of all boards is connected together - it can often be a big cause of problems if that isn't connected.
In terms of software, what you're doing looks good. The latch is often active low though, so I'd try:
Or potentially the problem is that
digitalPulse
is asyncronous? It will be working while you are writing data using displayPixel. I'm not sure if that's your intention? If not:Might help?
Also, I believe there are some issues with shiftOut:
repeat:8
in the options.You could try this?
Or, as @allObjects says, you can use the SPI object. But you'll still need
reverseByte