Ytai:

Thanks...that gives about a 15 micro sec pulse hard wired to the Android.

Vic

On Friday, April 4, 2014 6:19:40 PM UTC-7, Ytai wrote:
>
> Sure. Something like:
>
> ioio_.beginBatch();  // Start batching
> out1.write(true);  // Nothing happens
> out2.write(false);  // Nothing happens
> ...
> ioio_.endBatch();  // Now all the previously batched commands all get sent 
> at once.
>
> There's no guarantees that packets will not get fragmented and if you 
> batch too many commands they might get flushed prior to your endBatch(), 
> but in practice it works well for small batches.
>
> Just make sure not to do any blocking calls inside the batch (e.g. 
> TWI.writeRead()) as they'll block forever (waiting for result before having 
> sent the request).
>
>
> On Fri, Apr 4, 2014 at 5:20 PM, Vic Wintriss <[email protected]<javascript:>
> > wrote:
>
>> Ytai:
>>
>> Could you please give me an example of the code that I would need to do 
>> the beginBatch()/endBatch() thing.
>>
>> Thanks,
>>
>> Vic
>>
>>
>> On Tuesday, June 11, 2013 9:49:17 PM UTC-7, Vic Wintriss wrote:
>>>
>>> What is the minimum pulse width I will get with the following 
>>> DigitalOutput code:
>>>
>>>  rightStrobe.write(true);
>>>  rightStrobe.write(false);
>>>
>>> It looks like I am getting 40 millisecs with an android phone.
>>>
>>  -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> 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.

Reply via email to