Did you try to put a call to Thread.sleep( X ms); in your loop method? This would give some time to the other treads to finish their work.
2014-03-10 20:31 GMT+01:00 Tim Frisch <[email protected]>: > Tried just using the OnSeekBarChangeListener to change a global variable > which I instantiated to 0; and then set the duty cycle with that global > variable. > > Still not working > > On Monday, March 10, 2014 2:20:03 PM UTC-5, Tim Frisch wrote: >> >> 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. > -- 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.
