For the SPI communication, take a look at Espruino's SPI doc. With Puck you use all software defined SPIs. ('Finished' the pseudo code).
First develop the module inline, and then later you wrap it into a module context and provide a .connect() method like many other device modules have - nothing wrong w/ logical copy paste ... --- is just applying patterns
Looking forward to read your posts about the project's progress...
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.
For the SPI communication, take a look at Espruino's SPI doc. With Puck you use all software defined SPIs. ('Finished' the pseudo code).
First develop the module inline, and then later you wrap it into a module context and provide a
.connect()
method like many other device modules have - nothing wrong w/ logical copy paste ...--- is just applying patterns
Looking forward to read your posts about the project's progress...