Newbie just tsrating, need help with a sketch

You should give variables names that self document what is being done.

For example:

#define LEDon     HIGH
#define LEDoff    LOW

const byte heartbeatLED   = 13;
. . .

digitalWrite(heartbeatLED, LEDon);

Hence we have self documenting code. :wink:

1 Like