Did you have an "#include <Wire.h>" ? If Yes, maybe it doesn't include the one from esp8266.
Try to start a new sketch from scratch and copy/paste your code gradually ...
martinayotte wrote:The call to "Wire.pins(0,2)" is absolutely correct. So the error come from somewhere else.
Did you have an "#include <Wire.h>" ? If Yes, maybe it doesn't include the one from esp8266.
Try to start a new sketch from scratch and copy/paste your code gradually ...
The problem was that I checked my board as Arduino where I should choose ESP
Now, I got this
/home/leandro/espIDE/Arduino/build/linux/work/hardware/tools/esp8266/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: SPAlgorithm_ESP8266.cpp.elf section `.text' will not fit in region `iram1_0_seg'
collect2: error: ld returned 1 exit status
Error compiling.