Hi Tyler,
I couldn't find anything in the logcat. I am not aware of opening any pin
illegally, just including the following line causes the ioio to reset
repeatedly.
private AnalogInput bumper;
@Override
protected void setup() throws ConnectionLostException, InterruptedException
{
showVersions(ioio_, "IOIO connected!");
uart = ioio_.openUart(4,3, 115200, Uart.Parity.NONE,Uart.StopBits.ONE);
out = uart.getOutputStream();
in = uart.getInputStream();
bumper = ioio_.openAnalogInput(34);
}
Is anything wrong to declare analog input this way ? I am following ytai
example in the github.
Thanks
Kannan
On Sunday, November 26, 2017 at 1:11:08 AM UTC+5:30, Tyler wrote:
>
> Kannan,
>
> Does the logcat give any clues? Typically if you're opening a pin
> illegally (which I suspect) or violating a rule for the IOIO there will be
> an error noted on the log.
>
>
> On Saturday, November 25, 2017 at 6:43:35 AM UTC-8, kkannan wrote:
>>
>> Hi IOIO user, Ytai
>>
>> I am having a strange problem when trying to use analog input. In fact I
>> didn't even connect anything but just declaring ioio_.openAnalogInput(34)
>> causes the ioio
>> to reset endlessly. Even tried 32,33 and few more pin but the result is
>> the same. My boards IOIO OTG from sparkfun & seedstudio but both exhibit
>> the same behavior.
>>
>> When the line is commented out things are OK.
>>
>> I guess the firmware is the latest since I bought it last month and
>> powering it through 5V rail.
>>
>> Appreciate any help to solve it.
>>
>> Thanks
>> Kannan
>>
>
--
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 https://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.