Programing a M5Core2 for use with ATEM

I have the M5Stick-C as a Tally light using Aaron Pareckis instructions on Youtube and it works without any problems.

Now I trying to program a M5Core2 using the fork of Aarons project but get errors compiling and as I can’t figure out what the error is any one with a idea?

Mikael

Arduino: 1.8.13 (Mac OS X), Board: “M5Stack-Core2, Enabled, Default (2 x 6.5 MB app, 3.6 MB SPIFFS), 240MHz (WiFi/BT), 921600, None”

core2atem:606:23: error: variable or field ‘buttonWasPressed’ declared void
void buttonWasPressed(TouchEvent& e) {
^
core2atem:606:23: error: ‘TouchEvent’ was not declared in this scope
core2atem:606:35: error: ‘e’ was not declared in this scope
void buttonWasPressed(TouchEvent& e) {
^
/Users/mikaelfredriksson/Downloads/m5-core2-atem-controller-main/core2atem/core2atem.ino: In function ‘String chooseConfigFile()’:
core2atem:176:3: error: ‘TouchButton’ was not declared in this scope
TouchButton f0 = TouchButton(FBUTTON_XLOC, 1, FBUTTON_XSIZE, FBUTTON_YSIZE, “f0”);
^
core2atem:177:15: error: expected ‘;’ before ‘f1’
TouchButton f1 = TouchButton(FBUTTON_XLOC, FBUTTON_YLOC, FBUTTON_XSIZE, FBUTTON_YSIZE, “f1”);
^
core2atem:178:15: error: expected ‘;’ before ‘f2’
TouchButton f2 = TouchButton(FBUTTON_XLOC, (FBUTTON_YLOC2), FBUTTON_XSIZE, FBUTTON_YSIZE, “f2”);
^
core2atem:179:15: error: expected ‘;’ before ‘f3’
TouchButton f3 = TouchButton(FBUTTON_XLOC, (FBUTTON_YLOC
3), FBUTTON_XSIZE, FBUTTON_YSIZE, “f3”);
^
/Users/mikaelfredriksson/Downloads/m5-core2-atem-controller-main/core2atem/core2atem.ino: At global scope:
core2atem:606:24: error: variable or field ‘buttonWasPressed’ declared void
void buttonWasPressed(TouchEvent& e) {
^
core2atem:606:24: error: ‘TouchEvent’ was not declared in this scope
core2atem:606:36: error: ‘e’ was not declared in this scope
void buttonWasPressed(TouchEvent& e) {
^
Multiple libraries were found for “WiFi.h”
Used: /Users/mikaelfredriksson/Library/Arduino15/packages/m5stack/hardware/esp32/1.0.7/libraries/WiFi
Not used: /Applications/Arduino.app/Contents/Java/libraries/WiFi
Multiple libraries were found for “SD.h”
Used: /Users/mikaelfredriksson/Library/Arduino15/packages/m5stack/hardware/esp32/1.0.7/libraries/SD
Not used: /Applications/Arduino.app/Contents/Java/libraries/SD
Using library M5Core2-master at version 0.0.3 in folder: /Users/mikaelfredriksson/Documents/Arduino/libraries/M5Core2-master

exit status 1
variable or field ‘buttonWasPressed’ declared void