I have a new Uno, and wish to use the MCUSR register to determine whether a restart was due to a power-up or a reset button press.
I gather that I need to install Optiboot, but this is where it gets confusing. There's lots of history, and it's not clear what is required with a brand-new Uno and Arduino 1.8.9.
-
Is it required to burn Optiboot onto the Arduino ?
-
If not, is installing Optiboot 8.0 using the Boards Manager sufficient ?
If have NOT done 1), but have done 2). Still MCUSR shows as 0 whether on power-up or on reset button press.
Thanks !