-51-
Document Name
AI7688H
Reference Manual
Version
V 2.0
Date 2019/08/08
10.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 Wi-Fi LED (orange) should now start to blink every second.