7 Replies Latest reply on Dec 11, 2014 8:29 AM by mhahn

    regression in mraa for ww42 image

    mhahn

      see mraa: Illegal arguments for construction of _exports_Gpio: libmraa seems to have introduced a regression recently which prevents some IO on ww42 edison image.

      Right now pls don't upgrade to latest libmraa0 if you are on public ww42 image.

       

      root@edison:~# ./blink-io 13

      MRAA Version: v0.5.4-27-g643bb99

      Starting Blinking on IO13

      Are you sure that pin13 you requested is valid on your platform?

       

      # node /usr/share/mraa/examples/javascript/Blink-IO.js  

      MRAA Version: v0.5.4-14-gaff8811

       

       

      /usr/share/mraa/examples/javascript/Blink-IO.js:28

      var myLed = new m.Gpio(13); //LED hooked up to digital pin 13 (or built in pin

                  ^

      Error: Illegal arguments for construction of _exports_Gpio

          at Object.<anonymous> (/usr/share/mraa/examples/javascript/Blink-IO.js:28:13)

          at Module._compile (module.js:456:26)

          at Object.Module._extensions..js (module.js:474:10)

          at Module.load (module.js:356:32)

          at Function.Module._load (module.js:312:12)

          at Function.Module.runMain (module.js:497:10)

          at startup (node.js:119:16)

          at node.js:906:3

       

       

      # python /usr/share/mraa/examples/python/blink-io8.py ## 8 -> 13

      Traceback (most recent call last):

        File "/usr/share/mraa/examples/python/blink-io8.py", line 28, in <module>

          x = mraa.Gpio(13)

        File "/usr/lib/python2.7/site-packages/mraa.py", line 204, in __init__

          this = _mraa.new_Gpio(*args)

      ValueError: Invalid GPIO pin specified