From: Brendan Le Foll Date: Thu, 12 Jun 2014 06:59:06 +0000 (+0100) Subject: example.js: fix example to use up to date API X-Git-Tag: v0.3.0~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d12e3bd1cff93aea5dce82a97bc2ed674e63cf8;p=contrib%2Fmraa.git example.js: fix example to use up to date API Signed-off-by: Brendan Le Foll --- 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)