ESP8266 - I2C Problem
Posted: Wed Feb 03, 2016 2:12 pm
Code: Select all
#include <Adafruit_ESP8266.h>
#include <Wire.h>
void setup() {
Wire.pins(4, 5);
Wire.begin(0x45);
}
void loop() {
}
Arduino:1.6.6 (Windows 10), Board:"Adafruit HUZZAH ESP8266, 80 MHz, Serial, 115200, 4M (3M SPIFFS)"
In file included from Documents\Arduino\sketch_feb03a\sketch_feb03a.ino:1:0:
Documents\Arduino\libraries\Adafruit_ESP8266/Adafruit_ESP8266.h:28:35: error: section attribute not allowed for 'Pchr'
typedef const PROGMEM char Pchr; // Ditto, kindasorta
^
\Documents\Arduino\sketch_feb03a\sketch_feb03a.ino: In function 'void setup()':
Documents\Arduino\sketch_feb03a\sketch_feb03a.ino:5:17: warning: 'void TwoWire::pins(int, int)' is deprecated (declared at AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\Wire/Wire.h:54) [-Wdeprecated-declarations]
exit status 1
Compilation error
How to set up I2C properly ?