7 #if defined(TARGET_KL25Z)
9 #elif defined(TARGET_nRF51822)
11 #elif defined(TARGET_FF_ARDUINO) || defined(TARGET_MAXWSNENV)
12 I2C i2c(I2C_SDA, I2C_SCL);
19 char buf[] = {3, 2, 1, 4, 5, 6, 7, 8, 9, 10};
22 i2c.write(ADDR, buf, SIZE);
23 i2c.read(ADDR, res, SIZE);
25 // here should be buf[all]++
26 i2c.write(ADDR, res, SIZE);
27 i2c.read(ADDR, res, SIZE);
29 // here should be buf[all]+=2
30 i2c.write(ADDR, res, SIZE);
31 i2c.write(ADDR, res, SIZE);
33 // here should be buf[all]+=3
34 i2c.read(ADDR, res, SIZE);
35 i2c.read(ADDR, res, SIZE);
37 for(int i = 0; i < SIZE; i++) {
38 if (res[i] != (buf[i] + 3)) {
44 notify_completion(success);