I solved the issue; I was calling the seekBar value from a fragment that I
had failed to instantiate in the main activity.
instantiation the fragment object and recompiling solved the problem and it
now draws the pwm seekbar value as expected.
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.