Chat freely about anything...

User avatar
By Nick223
#40362
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 ?
User avatar
By Nick223
#40410
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... ?