I keep getting this error when trying to compile:
I have tried to use Platformio and arduino both…
Arduino: 1.8.12 (Windows 10), Board: “Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)”
sketch\src\HAL\HAL_AVR\u8g_com_HAL_AVR_sw_spi.cpp: In function ‘void u8g_spiSend_sw_AVR_mode_0(uint8_t)’:
sketch\src\HAL\HAL_AVR\u8g_com_HAL_AVR_sw_spi.cpp:90:3: error: ‘U8G_ATOMIC_START’ was not declared in this scope
U8G_ATOMIC_START();
^~~~~~~~~~~~~~~~
sketch\src\HAL\HAL_AVR\u8g_com_HAL_AVR_sw_spi.cpp:90:3: note: suggested alternative: ‘SIG_ATOMIC_MAX’
U8G_ATOMIC_START();
^~~~~~~~~~~~~~~~
SIG_ATOMIC_MAX
sketch\src\HAL\HAL_AVR\u8g_com_HAL_AVR_sw_spi.cpp:100:3: error: ‘U8G_ATOMIC_END’ was not declared in this scope
U8G_ATOMIC_END();
^~~~~~~~~~~~~~
sketch\src\HAL\HAL_AVR\u8g_com_HAL_AVR_sw_spi.cpp:100:3: note: suggested alternative: ‘U8G_ESC_END’
U8G_ATOMIC_END();
^~~~~~~~~~~~~~
U8G_ESC_END
sketch\src\HAL\HAL_AVR\u8g_com_HAL_AVR_sw_spi.cpp: In function ‘void u8g_spiSend_sw_AVR_mode_3(uint8_t)’:
sketch\src\HAL\HAL_AVR\u8g_com_HAL_AVR_sw_spi.cpp:110:3: error: ‘U8G_ATOMIC_START’ was not declared in this scope
U8G_ATOMIC_START();
^~~~~~~~~~~~~~~~
sketch\src\HAL\HAL_AVR\u8g_com_HAL_AVR_sw_spi.cpp:110:3: note: suggested alternative: ‘SIG_ATOMIC_MAX’
U8G_ATOMIC_START();
^~~~~~~~~~~~~~~~
SIG_ATOMIC_MAX
sketch\src\HAL\HAL_AVR\u8g_com_HAL_AVR_sw_spi.cpp:120:3: error: ‘U8G_ATOMIC_END’ was not declared in this scope
U8G_ATOMIC_END();
^~~~~~~~~~~~~~
sketch\src\HAL\HAL_AVR\u8g_com_HAL_AVR_sw_spi.cpp:120:3: note: suggested alternative: ‘U8G_ESC_END’
U8G_ATOMIC_END();
^~~~~~~~~~~~~~
U8G_ESC_END
Multiple libraries were found for “U8glib.h”
Used: C:\Users\Joshua\Documents\Arduino\libraries\U8glib
Not used: C:\Users\Joshua\Documents\Arduino\libraries\arduino_78349
exit status 1
Error compiling for board Arduino Mega or Mega 2560.
This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.