Compiling sketch....
.
.
"C:\Users\sarah\AppData\Local\Temp\arduino_build_134596\sketch\HardwareTest.ino.cpp.o"
In file included from C:\Users\sarah\Documents\Arduino\libraries\TTGO_TWatch_Library-master\src/drive/tft/bl.h:4,
from C:\Users\sarah\Documents\Arduino\libraries\TTGO_TWatch_Library-master\src/TTGO.h:101,
from C:\Users\sarah\Documents\Arduino\libraries\TTGO_TWatch_Library-master\src/LilyGoWatch.h:406,
from C:\Users\sarah\Documents\Arduino\libraries\TTGO_TWatch_Library-master\examples\UnitTest\HardwareTest\config.h:13,
from C:\Users\sarah\Documents\Arduino\libraries\TTGO_TWatch_Library-master\examples\UnitTest\HardwareTest\HardwareTest.ino:8:
C:\Users\sarah\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\Ticker\src/Ticker.h: In instantiation of 'void Ticker::once_ms(uint32_t, void ()(TArg), TArg) [with TArg = unsigned char; uint32_t = unsigned int]':
C:\Users\sarah\Documents\Arduino\libraries\TTGO_TWatch_Library-master\src/drive/tft/bl.h:111:20: required from here
C:\Users\sarah\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\Ticker\src/Ticker.h:92:37: warning: cast between incompatible function types from 'void ()(unsigned char)' to 'Ticker::callback_with_arg_t' {aka 'void ()(void)'} [-Wcast-function-type]
_attach_ms(milliseconds, false, reinterpret_cast(callback), arg32);
^~~~~~~~~~~
HardwareTest:55:17: error: 'last' defined but not used [-Werror=unused-variable]
static uint32_t last = 0;
^~~~
HardwareTest:53:72: error: 'find_mpr' defined but not used [-Werror=unused-variable]
static bool find_pwr, find_bma, find_pcf, find_mpu, find_max, find_tp, find_mpr, find_drv;
^~~~
HardwareTest:45:26: error: 'buzzer' defined but not used [-Werror=unused-variable]
static Buzzer *buzzer = nullptr ;
^~
cc1plus.exe: some warnings being treated as errors
.
.
.
.
exit status 1
'last' defined but not used [-Werror=unused-variable]
Compiling sketch.... . . "C:\Users\sarah\AppData\Local\Temp\arduino_build_134596\sketch\HardwareTest.ino.cpp.o" In file included from C:\Users\sarah\Documents\Arduino\libraries\TTGO_TWatch_Library-master\src/drive/tft/bl.h:4, from C:\Users\sarah\Documents\Arduino\libraries\TTGO_TWatch_Library-master\src/TTGO.h:101, from C:\Users\sarah\Documents\Arduino\libraries\TTGO_TWatch_Library-master\src/LilyGoWatch.h:406, from C:\Users\sarah\Documents\Arduino\libraries\TTGO_TWatch_Library-master\examples\UnitTest\HardwareTest\config.h:13, from C:\Users\sarah\Documents\Arduino\libraries\TTGO_TWatch_Library-master\examples\UnitTest\HardwareTest\HardwareTest.ino:8: C:\Users\sarah\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\Ticker\src/Ticker.h: In instantiation of 'void Ticker::once_ms(uint32_t, void ()(TArg), TArg) [with TArg = unsigned char; uint32_t = unsigned int]': C:\Users\sarah\Documents\Arduino\libraries\TTGO_TWatch_Library-master\src/drive/tft/bl.h:111:20: required from here C:\Users\sarah\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\Ticker\src/Ticker.h:92:37: warning: cast between incompatible function types from 'void ()(unsigned char)' to 'Ticker::callback_with_arg_t' {aka 'void ()(void)'} [-Wcast-function-type] _attach_ms(milliseconds, false, reinterpret_cast(callback), arg32);
^
~~~~~~~~~~ HardwareTest:55:17: error: 'last' defined but not used [-Werror=unused-variable] static uint32_t last = 0; ^~~~ HardwareTest:53:72: error: 'find_mpr' defined but not used [-Werror=unused-variable] static bool find_pwr, find_bma, find_pcf, find_mpu, find_max, find_tp, find_mpr, find_drv; ^~~~ HardwareTest:45:26: error: 'buzzer' defined but not used [-Werror=unused-variable] static Buzzer *buzzer = nullptr ; ^~cc1plus.exe: some warnings being treated as errors . . . . exit status 1 'last' defined but not used [-Werror=unused-variable]