Hi Rafael,
I am having problems with i2c read write too. The code only seems to pick 
up odd values for some reason. I am a newbie to this domain in general and 
would appreciate any assistance. Can you share the read instance of your 
code or help me find fault in mine?
        opResult = read(i2cFD, (char*)rxBuffer, 6);
printf("Part ID rx0: %x, %x\n", (int)rxBuffer[0], 0x00);
printf("Part ID rx1: %x, %x\n", (int)rxBuffer[1], 0x01);
printf("Part ID rx2: %x, %x\n", (int)rxBuffer[2], 0x02);
printf("Part ID rx3: %x, %x\n", (int)rxBuffer[3], 0x03);
printf("Part ID rx4: %x, %x\n", (int)rxBuffer[4], 0x04);
        printf("Part ID rx5: %x, %x\n", (int)rxBuffer[5], 0x05);
Thank you
On Wednesday, April 2, 2014 at 3:29:42 AM UTC-4, Rafael Fiebig-Bindner 
wrote:
>
> I don't understand what happened, but today the behavior changed again, 
> "i2cdetect -y -r 1" working as it is supposed to and my program doing 
> nothing at all. Maybe I got something wired wrong yesterday? But I don't 
> really care right now, since I also found a bug in my code (damm pointers) 
> and now everything is working fine.
>  
> Best regards
> Rafael Fiebig-Bindner
>

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