You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use the <MCP4251.h> library for a project using Arduino: 1.8.19 (Windows 10) and an "Arduino MKRZERO" for simulating NTC temperature sensors, using the 100kOhm version. However, when I try and compile the basic example provided, I get a large number of errors, such as:
..\Arduino\libraries\MCP4251\src\MCP4251.cpp:49:20: warning: 'B00000000' is deprecated: use 0b00000000 instead [-Wdeprecated-declarations]
I'm not getting any warning when compiling for Arduino Uno, however for MKRZERO I'm getting some different error.
For the time being, I suggest you to change all the binary literals in "MCP4251.h" and "MCP4251.cpp" files to the suggested format. Usually these installed library files for MCP4251 are at C:\Users\<Replace this with username>\Documents\Arduino\libraries\MCP4251\src
thanks for the tip, sorry I was not able to get around to trying it earlier. Replacing all the B formats to 0b in both the .h and .cpp files as well as the example program itself has cured the problem. There are no compile errors whatsoever now.
Thanks for the help
Andrew
I would like to use the <MCP4251.h> library for a project using Arduino: 1.8.19 (Windows 10) and an "Arduino MKRZERO" for simulating NTC temperature sensors, using the 100kOhm version. However, when I try and compile the basic example provided, I get a large number of errors, such as:
..\Arduino\libraries\MCP4251\src\MCP4251.cpp:49:20: warning: 'B00000000' is deprecated: use 0b00000000 instead [-Wdeprecated-declarations]
see attachment for complete list.
MCP4251_compile_errors.txt
The text was updated successfully, but these errors were encountered: