CupCarbon & NodeJS

NodeJS in CupCarbon

Install NodeJS from the website

Copy the command or the path you are using to execute NodeJS programs in the Executor Path Configuration of CupCarbon:

Refer to Tutorials 1, 2 and 3 of the page Start with CupCarbon.
You can write NodeJS programs as explained in Section "Start With CupCarbon". The following NodeJS program allows to display alternately Hellow World! and the Blink (mark/unmark) of the device:

const {execSync} = require('child_process');

while (true) {
    console.log("print Hello")
    execSync('sleep 1')
    console.log("print World !")
    execSync('sleep 1')