3 Replies Latest reply on Mar 26, 2015 12:47 PM by ForumMigrationAdmin

    More than one PWM doesn't work.

    ForumMigrationAdmin

      On Intel XDK IOT edition,

      I tried:

      var mraa=require("mraa");

      var mypwm=mraa.pwm(9,-1,false);

      mypwm.enable(true);

      mypwm.period_us(2000);

      mypwm.write(0.5)//half the value

      This works fine. But when I bring in another pwm value:

      var mraa=require("mraa");

      var mypwm=mraa.pwm(9,-1,false);

      var mypwm2=mraa.pwm(10,-1,false);

      This causes an error. I tried building it, uploading it, all sorts of things. Is there a way where I can have multiple PWM outputs without bringing up an error?