Closed fragsalat closed 5 years ago
As written in the description: You are allowed to import SoftWire or SoftI2CMaster only once!
Yeah It actually is just a strange behavior of Arduino IDE. It works when including once in the library CCS811.cpp but it must be a relative import so that Arduino IDE recognize it without import in main .ino file
Hey there, I'm having the issue with latest master. Using gcc-avr 5.4.0+Atmel3.6.1-1~rpt1 and Arduino 1.0.5+dfsg2-4.1 on raspbian. I want to build for an ATtiny84 but that should not matter right now.
That's how I use it
To be honest the error is a bit confusing as it sounds more less as the file was included twice as the line matches the constructor of SoftWire which doens't declare the functions.
Any idea what this can be?
Edit: I guess that happens because of I have to include the SoftWire.h twice. I generally need in in CCS811.cpp but with Arduino I have to include it in the ino file as well to be visible in other files. Even though there is a #ifndef it seems like the assembler functions are re-declared