Compiling an Arduino firmware written in JavaScript from your Android or Apple Smartphone with Termux

Is it possible to compile a true Arduino firmware written in JavaScript from your smartphone ? With NectarJS, yes, it is.

The code

require("arduino");

var ledPin = 10;
arduino.pinMode(ledPin, arduino.OUTPUT);
while(1)
{
        arduino.digitalWrite(ledPin, arduino.HIGH);
        arduino.delay(1000);
        arduino.digitalWrite(ledPin, arduino.LOW);
        arduino.delay(1000);
}

Compilation with Termux and flashing with AVRDUDE

You can compile this code using NectarJS from every device, like your Android or Apple smartphone with Termux :

We plan to develop a NectarJS app for Android, Iphone, Windows phone, with an IDE and a easier way to compile from smartphones.

Adrien