User's Manual

Table Of Contents
AI7688H User Manual
-48-
Copyright@2016 AcSiP
8.5 Using MRAA in node.js
libmraa comes with node.js bindings - so you can use it in node.js applications.
This example shows how to control the LED light with libmraa and node.js.
Installing MRAA
Libmraa and its Nodejs bindings are already installed in the system image of AI7688H,
so you don't need to install it again.
Controlling LED with MRAA in Node.js
Our first tutorial is controlling the LED with a simple node.js program.
Steps
Gain access to system console
Create a nodejs app:
Create a app.js file with following content:
Execute the application:
The WiFi LED (orange) should now start to blink every second.