[riot-devel] I2C - Arduino <-> SAMR21-xpro
alessandro.nicoli at studenti.unipr.it
Fri Aug 5 16:23:18 CEST 2016
There is someone who tried to interface arduino to RIOT (the board in my
case is SAMR21-xpro) through the I2C ?
I would config the Arduino as MASTER (i've already did it with wire.h) and
samr21 as SLAVE.
I did a code like this :
/* define own shell commands */
//shell_run(shell_commands, line_buf, SHELL_DEFAULT_BUFSIZE);
puts("waiting for data...");
read = i2c_read_byte(0, 8, data);
puts("ERROR : UNDEFINED DEVICE");
printf("data arrived : %c",data);
Arduino will send 5 byte at time, but the samr21 doesn't receive
Thanks all !
*best regards, *
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the devel