arduino what is #if code example
Example 1: arduino if-else
if (condition1) {
// Tue Task 1
}
else if (condition2) {
// Tue Task 2
}
else {
// Tue Task 3
}
Example 2: arduino what is #if
The #if condition is evaluated only at compile time. The "if" is evaluated at run time.
Example 3: if arduino
pinMode(LED_BUILTIN, OUTPUT);