thanks for reply

I try this



*root@beaglebone:~# i2cset -y 1 0x49 0x01 0x60root@beaglebone:~# i2cget -y 
1 0x49 0x00 0xb016*

i thinks is correctly,
now i would like in node js

I try this







*var b=require('bonescript');var 
port='/dev/i2c-1';b.i2cOpen(port,0x49,{});b.i2cWriteBytes(port,0x01,0x60);r 
=b.i2cReadBytes(port,0x00,2);console.log(r);*

in the console show this result

<Buffer 38 70>

But now is not the same  
*0xb016*How i can do ?

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to