-->
Page 1 of 1

ESP8266 - I2C Problem

PostPosted: Wed Feb 03, 2016 2:12 pm
by Nick223
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 ?

Re: ESP8266 - I2C Problem

PostPosted: Wed Feb 03, 2016 3:04 pm
by martinayotte
Code: Select allWire.begin(4, 5);

Re: ESP8266 - I2C Problem

PostPosted: Thu Feb 04, 2016 8:14 am
by Nick223
Arduino:1.6.6 (Windows 10), Board:"Adafruit HUZZAH ESP8266, 80 MHz, Serial, 115200, 4M (3M SPIFFS)"

In file included from Documents\Arduino\sketch_feb04a\sketch_feb04a.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

^

exit status 1
Compilation error


Still... ?