Hi,
Take a look at: http://www.espruino.com/ReferenceESPRUINOBOARD
And the Arduino example: http://arduino.cc/en/tutorial/ShiftOut
Looks like you need 3 wires - Data, Clock, and latch. Because Espruno does software SPI, you can actually use any 3 IO pins.
The code you might use is:
var spi = new SPI(); spi.setup({mosi: MY_DS_PIN, sck: MY_SH_CP_PIN }); spi.write(my_data, MY_ST_CP_PIN);
@Gordon started
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,
Take a look at: http://www.espruino.com/ReferenceESPRUINOBOARD
And the Arduino example: http://arduino.cc/en/tutorial/ShiftOut
Looks like you need 3 wires - Data, Clock, and latch. Because Espruno does software SPI, you can actually use any 3 IO pins.
The code you might use is: