Closed roboflank closed 7 years ago
am using the i2c code example
I've not used Energia but I do use this in PlatformIO and it works fine.
Have you tried it in an another IDE?
What platform (MCU) are you building for?
denzelwamburu,
NaN (not a number) is a C++ 99/11 construct. Do you have the capability in Energia to specify using the C++ 11 compiler? If not you may need to define NAN in the BME280 file as well as the function isnan();
Tyler
You can put something along the lines of:
in the top of your BME280.cpp file.
Tyler
Hi @finitespace , let me look at it tomorrow and give you the feedback. Thanks.
@theopensourcerer MSP430
@finitespace Where exactly should this be placed?
Putting it on the define sections of BME280.cpp
doesn't solve the issue.
At the top of the BME280.cpp file should work.
Tyler
Sent from iPhone
On Apr 17, 2017, at 11:53 PM, Wamburu notifications@github.com wrote:
@finitespace Where exactly should this be placed?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
Am trying to run the program in energia and am getting the following error.
BME_280_I2C_Test:78: error: 'NAN' was not declared in this scope
exit status 1
'NAN' was not declared in this scope.