2016-03-21 11:25:19 -07:00
|
|
|
/*
|
|
|
|
|
* Author: Ron Evans (@deadprogram)
|
|
|
|
|
* Copyright (c) 2016 Intel Corporation.
|
|
|
|
|
*
|
2019-05-09 09:47:11 -07:00
|
|
|
* SPDX-License-Identifier: MIT
|
2016-03-21 11:25:19 -07:00
|
|
|
*/
|
|
|
|
|
|
2017-02-23 00:57:19 -06:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
const mraa = require('mraa');
|
2016-03-21 11:25:19 -07:00
|
|
|
console.log('MRAA Version: ' + mraa.getVersion());
|
|
|
|
|
|
|
|
|
|
// open connection to firmata
|
|
|
|
|
mraa.addSubplatform(mraa.GENERIC_FIRMATA, "/dev/ttyACM0");
|