Hello Everyone,
I should really be in a good position to get the answer to this at work but I want to do this whilst I am off.
Using the following code for the DS18B20 temperature sensor as per the project code below.
http://mbed.org/users/feabhas/notebook/ds18b20-temperature-sensor/?page=1#comment-230
I have put this together and got the sensor running and periodically updating. However I now need to explore a conditional statement that should the temperature exceed X degrees then an warning sound/led should light up.
I have added the following code
if (displayTemperature > 30 );{
mbled1 = 1;
}
but when I go to compile I get the following error:
"operand types are incompatible ("void (*)(mbed::Serial &)" and "int")" in file "/main.cpp", Line: 28, Col: 26
This is obviously where my knowledge of coding fails.
The information comes out to my hyperterminal ok so I am just puzzled at the moment.
Hello Everyone,
I should really be in a good position to get the answer to this at work but I want to do this whilst I am off.
Using the following code for the DS18B20 temperature sensor as per the project code below.
http://mbed.org/users/feabhas/notebook/ds18b20-temperature-sensor/?page=1#comment-230
I have put this together and got the sensor running and periodically updating. However I now need to explore a conditional statement that should the temperature exceed X degrees then an warning sound/led should light up.
I have added the following code
if (displayTemperature > 30 );{ mbled1 = 1; }
but when I go to compile I get the following error:
"operand types are incompatible ("void (*)(mbed::Serial &)" and "int")" in file "/main.cpp", Line: 28, Col: 26
This is obviously where my knowledge of coding fails.
The information comes out to my hyperterminal ok so I am just puzzled at the moment.