Closed ghost closed 7 years ago
I opened up the example "AccessMemory.ino" (using the standard 1.8.3 IDE and also with Atmel Studio with VisualMicro installed) with the "Arduino Esplora" selected and got a good compile:
Compiling 'AccessMemory' for 'Arduino Esplora' Program size: 9,876 bytes (used 34% of a 28,672 byte maximum) (16.17 secs) Minimum Memory Usage: 477 bytes (19% of a 2560 byte maximum)
Could you try to compile that example to see if you also get an error? Also, I don't have an "Esplora8266" in my list of boards. Could you try to set the compiler options to "verbose" and see if the error message is more detailed?
Ok, it seems that the template functions "readRAM" and "writeRAM" do not need the "MCP7940_Class::" definitions. I don't know why your compiler doesn't like them, but they are superfluous and I've removed them from the header file.
Created Release 1.0.5a for this fix.
MCP7940-master/MCP7940.h:176:19: error: extra qualification 'MCP7940_Class::' on member 'readRAM' [-fpermissive]
MCP7940-master/MCP7940.h:190:12: error: extra qualification 'MCP7940_Class::' on member 'writeRAM' [-fpermissive]
exit status 1 Error compiling for board Generic ESP8266 Module.