Exactly like that. You can pass in null as the response if you want, but a
zero length response is executed as a write only transaction.
On Mar 8, 2015 9:42 AM, "Linus Anderberg" <
[email protected]> wrote:

> Thanks. Got it hooked up and works "fine" with my test board but for some
> reason the readwrite command halts my loop on my live project, no crash or
> anything it just stop looping. Trying to see if I can find out why.
> Btw. How would this code look like if I dont need to read the pot?
>
> port.writeRead(0x28, false, request, request.length, response, 0);
>
> On Monday, March 2, 2015 at 10:33:40 PM UTC+1, Ytai wrote:
>
>> You need to hook up:
>>
>>    - Vcc (either 5V or 3V3) and GND.
>>    - A0/A1/A2 each to either Vcc or GND for selecting the I2C address.
>>    - SCL/SDA to the respective pins on one of the IOIO I2C (TWI) buses.
>>    Pull-up resistor on each of these lines to Vcc. Resistance anywhere 
>> between
>>    2.2k-10k should be fine.
>>    - Outputs (H/L/W) as per your application requirements.
>>
>>
>> On Sun, Mar 1, 2015 at 5:29 AM, Linus Anderberg <linus.a...@
>> avalanchestudios.se> wrote:
>>
>>> Im new to all this and i'm now experimenting with this digital
>>> potentiometer. Is it possible to see how you wired this to the ioio?
>>>
>>> Cheers
>>> Linus
>>>
>>>
>>> On Wednesday, February 6, 2013 at 3:38:15 AM UTC+1, Jabberwock wrote:
>>>
>>>> Turns out it was a hardware problem after all. I must have borked
>>>> something when I rewired the power supply - when I moved the chip to a new
>>>> board and wired it properly it works. Now onto the programming... sigh. I
>>>> must admit I find Java very initmidating...
>>>>
>>>> W dniu wtorek, 5 lutego 2013 16:37:21 UTC+1 użytkownik Ytai napisał:
>>>>>
>>>>> No. The last bit is r/w, and is not considered part of the address in
>>>>> this context. The writeRead operation will do a write-followed-by-read
>>>>> transaction, exactly like the one described in the datasheet for reading
>>>>> values.
>>>>>
>>>>  --
>>> 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.
>

-- 
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