Keyword "RESET" in Photon

I mistakenly programmed as follows:
digitalWrite(RESET, HIGH);
digitalWrite(RESET, LOW);

I had not defined RESET in my program. (Program did odd things!)

What does the language keyword RESET mean?

RESET is defined by the microcontroller library as an alias for 0. So this should toggle the 1st pin which is D0.

1 Like

Thank you. How did you know where to look in the “microcomputer library” to find that? What is that library?

Specifically, it’s defined in the STM peripheral library

I know because I ran into this yesterday while working on a driver for the CAN bus.