From 2d12e3bd1cff93aea5dce82a97bc2ed674e63cf8 Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Thu, 12 Jun 2014 07:59:06 +0100 Subject: [PATCH] example.js: fix example to use up to date API Signed-off-by: Brendan Le Foll --- examples/javascript/example.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/javascript/example.js b/examples/javascript/example.js index 3cde370..297be71 100644 --- a/examples/javascript/example.js +++ b/examples/javascript/example.js @@ -23,8 +23,8 @@ */ var m = require("./maajs") -console.log("maa version: " + m.get_version()); +console.log("maa version: " + m.getVersion()); var x = new m.Gpio(8) -x.dir(m.MAA_GPIO_OUT) +x.dir(m.DIR_OUT) x.write(1)