Identifier false is undefined

I just have this:

#include <Arduino.h>
volatile bool setClock;

void setup() {
  setClock = FALSE;
}

If I F12 FALSE, there is not definition.

I am using Platform IDE with vscode - new install today with latest downloads.

System wants to have lower case “false”

Why should this work? Standard C++ defines the boolean values to true and false. Even the C header stdbool.h uses #define true 1 and #define false 0 in GCC. Where did this work beofre?

1 Like

It worked in the Arduino IDE. You are correct, it should have been lower case to begin with. Most Arduino example sketches use the upper case of HIGH, LOW, FALSE, TRUE. I just wasn’t thinking at the time.