Hi everyone,
I am using a Black Launchpad and this does not work in the latest version of Energia which is 1.6.10E18.
So I switched back to the version 0101E0017 to make use of the Black Launchpad.
My code is below and tried in Arduino IDE and working fine:
float a = 3.5;
float b = 2.0;
float result = 0.00;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
result = max(a,b);
Serial.println(result);
delay(1000);
}
Using the same code