examples: Update examples to use newer maa functions
* Use maa_init() before any other maa functions are called * Use ioNN instead of gpioXX, Using mapping Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
*/
|
||||
|
||||
var m = require("maajs")
|
||||
|
||||
m.init();
|
||||
console.log("maa version: " + m.get_version());
|
||||
|
||||
var r = new m.I2C(20, 21);
|
||||
|
||||
Reference in New Issue
Block a user