While building a simple IIC receiving program, I get a error message or note.
Invalid library found in C:\Program Files\Arduino\libraries\Firmata: Library can't use both 'src' and 'utility' folders.
Invalid library found in C:\Program Files\Arduino\libraries\Firmata: Library can't use both 'src' and 'utility' folders.
I included the Wire library with Sketch/Include Library.
Should I be worried?
The program seems to work, but I haven't been able to actually receive anything meaningful so far.
#include <Wire.h>
// Wire Master Reader
// by Nicholas Zambetti <http://www.zambetti.com>
// Demonstrates use of the Wire library
// Reads data from an I2C/TWI slave device
// Refer to the "Wire Slave Sender" example for use with this
// Created 29 March 2006
// This example code is in the public domain.
//#include <Wire.h>
char c;
void setup()
{
Wire.begin(); // join i2c bus (address optional for master)
Serial.begin(9600); // start serial for output
Serial.println("Hi");
}
void loop()
{
Wire.requestFrom(0, 3); // addr, data
while(Wire.available()) // slave may send less than requested
{
c = Wire.read(); // receive a byte as character
Serial.write(c); // print the character
Serial.println();
Serial.print(c);
if (c==255)
{
Serial.println("255");
}
}
Serial.println("m");
delay(1000);
}