Hello,
I followed those exact steps but got this error message:
"Arduino: 1.8.14 Hourly Build 2021/01/29 11:33 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
C:\Users\maxfr\OneDrive\Documents\Arduino\libraries\U8glib\src\clib\u8g_rot.c:48:27: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
u8g_dev_t u8g_dev_rot = { u8g_dev_rot_dummy_fn, NULL, NULL };
^~~~~~~~~~~~~~~~~~~~
C:\Users\maxfr\OneDrive\Documents\Arduino\libraries\U8glib\src\clib\u8g_rot.c:48:27: note: (near initialization for 'u8g_dev_rot.dev_fn')
Sketch uses 104722 bytes (41%) of program storage space. Maximum is 253952 bytes.
Global variables use 4682 bytes (57%) of dynamic memory, leaving 3510 bytes for local variables. Maximum is 8192 bytes.
An error occurred while uploading the sketch
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Any help would be greatly appreciated