Here is my implementation:
setup:

setup(){
p1 = ioio_.openPwmOutput(27, 100);
}

Looper:

public void loop() throws ConnectionLostException, InterruptedException {
         p1.setDutyCycle((float)pwm1Seek.getProgress() / 330);
}

pwm1Seek is just a seekbar that I have with it's max set to 330.

Why won't this method work for setting the duty cycle? if I just enter 
p1.setDutyCycle(.5);

it works?

-- 
You received this message because you are subscribed to the Google Groups 
"ioio-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to