A separate thread might make sense in this case, since it will allow you to
keep the code simple (as opposed to having to assemble strings out of
fragmented readings).
Having said that, if your original program got stuck, a separate thread
wouldn't fix that (it will get stuck too), so you might have another
problem.


On Tue, Dec 17, 2013 at 9:05 AM, Synn Yong Tan <[email protected]> wrote:

> I want to get feedback of an absolute encoder through the uart. Means I
> separate the inputstream and the led to two thread?
>  On 18 Dec 2013 00:57, "Ytai Ben-Tsvi" <[email protected]> wrote:
>
>> readLine() will block until a new line sequence appears on the input. If
>> you want to do that, you'll have to run it on a separate thread. What are
>> you *really* trying to achieve?
>>
>>
>> On Tue, Dec 17, 2013 at 8:47 AM, Synn Yong Tan <[email protected]> wrote:
>>
>>> ya. the example code works, I also found that the UART part gt problem
>>> after i tried it part by part.
>>> But i have no clue for it. Any clue or guide for me to correct the
>>> code?!
>>> Thanks for your kind help.
>>>
>>>
>>> On Wed, Dec 18, 2013 at 12:41 AM, Ytai Ben-Tsvi <[email protected]>wrote:
>>>
>>>> Your code is stuck waiting on the UART. Did you get the example code
>>>> working?
>>>>
>>>>
>>>> On Tue, Dec 17, 2013 at 5:15 AM, Synn Yong Tan <[email protected]>wrote:
>>>>
>>>>> yea. my apps actually works for the ori version of IOIO sample app.
>>>>> But after i edited the code as the code i posted above, then the led light
>>>>> cannot turn on.
>>>>>
>>>>>
>>>>> On Tue, Dec 17, 2013 at 9:07 PM, Matanel <[email protected]>wrote:
>>>>>
>>>>>>  Did you download 3.3v firmware of IOIOLibs??
>>>>>>
>>>>>> בתאריך יום שני, 16 בדצמבר 2013 14:39:58 UTC+2, מאת Synn Yong Tan:
>>>>>>
>>>>>>> Hi,
>>>>>>> This is my 1st try on IOIO. I done everything according to the OIOI
>>>>>>> OTG Beginners Guide. But when i toggled the button, the led on IOIO 
>>>>>>> board
>>>>>>> didn't light up.
>>>>>>> Any ideas what caused this problem ? Anyone has the solution for
>>>>>>> this ? Or how to debug it ?
>>>>>>> Secondly is the conversion to dalvik format failed with error 1. I
>>>>>>> can export the project into apk file for the 1st time. But the second 
>>>>>>> time
>>>>>>> I try to export the project, this error comes out.
>>>>>>> Anyone knows what is the problem caused this error and how to solve
>>>>>>> it ?
>>>>>>>
>>>>>>> Thanks for your help.
>>>>>>>
>>>>>>  --
>>>>>> You received this message because you are subscribed to a topic in
>>>>>> the Google Groups "ioio-users" group.
>>>>>> To unsubscribe from this topic, visit
>>>>>> https://groups.google.com/d/topic/ioio-users/wTlJJcG6LS8/unsubscribe.
>>>>>> To unsubscribe from this group and all its topics, 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/groups/opt_out.
>>>>>>
>>>>>
>>>>>  --
>>>>> 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/groups/opt_out.
>>>>>
>>>>
>>>>  --
>>>> You received this message because you are subscribed to a topic in the
>>>> Google Groups "ioio-users" group.
>>>> To unsubscribe from this topic, visit
>>>> https://groups.google.com/d/topic/ioio-users/wTlJJcG6LS8/unsubscribe.
>>>> To unsubscribe from this group and all its topics, 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/groups/opt_out.
>>>>
>>>
>>>  --
>>> 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/groups/opt_out.
>>>
>>
>>  --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "ioio-users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/ioio-users/wTlJJcG6LS8/unsubscribe.
>> To unsubscribe from this group and all its topics, 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/groups/opt_out.
>>
>  --
> 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/groups/opt_out.
>

-- 
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/groups/opt_out.

Reply via email to