Have been enjoying the new core from DrAzzy and am now trying to integrate an I2C perferial and am running into issues. I have the latest version of the core 1.1.9 installed and am trying to compile an example from the wire examples for the MTC and get the following error (below)
I have tried uninstalling/reinstalling both the Arduino IDE and the MTC, but no luck.
Any thoughts on what is causing the conflict? If there is a better place to post this please let me know.
Thanks
- something must have broken in the updates. I reverted back to version 1.1.8 of the core and don't have problems compiling programs that use the wire library.
Compiling library "Wire"
"C:\\Users\\paulj\\Documents\\ArduinoData\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=attiny3216 -DF_CPU=20000000L -DARDUINO=10812 -DARDUINO_attinyxy6 -DARDUINO_ARCH_MEGAAVR -DMILLIS_USE_TIMERD0_A0 -DNO_EXTERNAL_I2C_PULLUP -DUSE_TIMERD0_PWM -DDACVREF=0 -DNEOPIXELPORT=VPORTA.OUT "-IC:\\Users\\paulj\\Documents\\ArduinoData\\packages\\megaTinyCore\\hardware\\megaavr\\1.1.9\\cores\\arduino/api/deprecated" "-IC:\\Users\\paulj\\Documents\\ArduinoData\\packages\\megaTinyCore\\hardware\\megaavr\\1.1.9\\cores\\arduino" "-IC:\\Users\\paulj\\Documents\\ArduinoData\\packages\\megaTinyCore\\hardware\\megaavr\\1.1.9\\variants\\txy6" "-IC:\\Users\\paulj\\Documents\\ArduinoData\\packages\\megaTinyCore\\hardware\\megaavr\\1.1.9\\libraries\\Wire\\src" "C:\\Users\\paulj\\Documents\\ArduinoData\\packages\\megaTinyCore\\hardware\\megaavr\\1.1.9\\libraries\\Wire\\src\\Wire.cpp" -o "C:\\Users\\paulj\\AppData\\Local\\Temp\\arduino_build_620216\\libraries\\Wire\\Wire.cpp.o"
In file included from C:\Users\paulj\Documents\ArduinoData\packages\megaTinyCore\hardware\megaavr\1.1.9\libraries\Wire\src\Wire.cpp:27:0:
C:\Users\paulj\Documents\ArduinoData\packages\megaTinyCore\hardware\megaavr\1.1.9\libraries\Wire\src\utility/twi.h: In function 'void TWI_SlaveInit(uint8_t)':
C:\Users\paulj\Documents\ArduinoData\packages\megaTinyCore\hardware\megaavr\1.1.9\libraries\Wire\src\utility/twi.h:74:27: error: too many arguments to function 'void TWI_SlaveInit(uint8_t)'
TWI_SlaveInit(address,0,0);
^
C:\Users\paulj\Documents\ArduinoData\packages\megaTinyCore\hardware\megaavr\1.1.9\libraries\Wire\src\utility/twi.h:73:6: note: declared here
void TWI_SlaveInit(uint8_t address){
^~~~~~~~~~~~~
C:\Users\paulj\Documents\ArduinoData\packages\megaTinyCore\hardware\megaavr\1.1.9\libraries\Wire\src\utility/twi.h: In function 'void TWI_SlaveInit(uint8_t, uint8_t)':
C:\Users\paulj\Documents\ArduinoData\packages\megaTinyCore\hardware\megaavr\1.1.9\libraries\Wire\src\utility/twi.h:76:6: error: conflicting declaration of C function 'void TWI_SlaveInit(uint8_t, uint8_t)'
void TWI_SlaveInit(uint8_t address,uint8_t receive_broadcast){
^~~~~~~~~~~~~
C:\Users\paulj\Documents\ArduinoData\packages\megaTinyCore\hardware\megaavr\1.1.9\libraries\Wire\src\utility/twi.h:73:6: note: previous declaration 'void TWI_SlaveInit(uint8_t)'
void TWI_SlaveInit(uint8_t address){
^~~~~~~~~~~~~
C:\Users\paulj\Documents\ArduinoData\packages\megaTinyCore\hardware\megaavr\1.1.9\libraries\Wire\src\utility/twi.h:77:43: error: no matching function for call to 'TWI_SlaveInit(uint8_t&, uint8_t&, int)'
TWI_SlaveInit(address,receive_broadcast,0)
^
C:\Users\paulj\Documents\ArduinoData\packages\megaTinyCore\hardware\megaavr\1.1.9\libraries\Wire\src\utility/twi.h:73:6: note: candidate: void TWI_SlaveInit(uint8_t)
void TWI_SlaveInit(uint8_t address){
^~~~~~~~~~~~~
C:\Users\paulj\Documents\ArduinoData\packages\megaTinyCore\hardware\megaavr\1.1.9\libraries\Wire\src\utility/twi.h:73:6: note: candidate expects 1 argument, 3 provided
C:\Users\paulj\Documents\ArduinoData\packages\megaTinyCore\hardware\megaavr\1.1.9\libraries\Wire\src\utility/twi.h:76:6: note: candidate: void TWI_SlaveInit(uint8_t, uint8_t)
void TWI_SlaveInit(uint8_t address,uint8_t receive_broadcast){
^~~~~~~~~~~~~
C:\Users\paulj\Documents\ArduinoData\packages\megaTinyCore\hardware\megaavr\1.1.9\libraries\Wire\src\utility/twi.h:76:6: note: candidate expects 2 arguments, 3 provided
C:\Users\paulj\Documents\ArduinoData\packages\megaTinyCore\hardware\megaavr\1.1.9\libraries\Wire\src\utility/twi.h: At global scope:
C:\Users\paulj\Documents\ArduinoData\packages\megaTinyCore\hardware\megaavr\1.1.9\libraries\Wire\src\utility/twi.h:79:6: error: conflicting declaration of C function 'void TWI_SlaveInit(uint8_t, uint8_t, uint8_t)'
void TWI_SlaveInit(uint8_t address,uint8_t receive_broadcast,uint8_t second_addres);
^~~~~~~~~~~~~
C:\Users\paulj\Documents\ArduinoData\packages\megaTinyCore\hardware\megaavr\1.1.9\libraries\Wire\src\utility/twi.h:76:6: note: previous declaration 'void TWI_SlaveInit(uint8_t, uint8_t)'
void TWI_SlaveInit(uint8_t address,uint8_t receive_broadcast){
^~~~~~~~~~~~~
C:\Users\paulj\Documents\ArduinoData\packages\megaTinyCore\hardware\megaavr\1.1.9\libraries\Wire\src\utility/twi.h:79:6: error: conflicting declaration of C function 'void TWI_SlaveInit(uint8_t, uint8_t, uint8_t)'
void TWI_SlaveInit(uint8_t address,uint8_t receive_broadcast,uint8_t second_addres);
^~~~~~~~~~~~~
C:\Users\paulj\Documents\ArduinoData\packages\megaTinyCore\hardware\megaavr\1.1.9\libraries\Wire\src\utility/twi.h:73:6: note: previous declaration 'void TWI_SlaveInit(uint8_t)'
void TWI_SlaveInit(uint8_t address){
^~~~~~~~~~~~~
Using library Wire at version 1.0 in folder: C:\Users\paulj\Documents\ArduinoData\packages\megaTinyCore\hardware\megaavr\1.1.9\libraries\Wire
exit status 1
Error compiling for board ATtiny3216/1616/1606/816/806/416/406.