Strange, your code works with ArduinoIDE, but could not be linked with VisualMicro, giving the following errors:
`core.a(main.cpp.o)*: (.literal._Z8loopTaskPv+0x4): undefined reference to setup()
Error linking for board M5Stack-Core-ESP32
Debug build failed for project 'MAX30100'
core.a(main.cpp.o)*: (.literal._Z8loopTaskPv+0x8): undefined reference to loop()
core.a(main.cpp.o): In function loopTask(void)
main.cpp:20: undefined reference to setup()
main.cpp:23: undefined reference to loop()
Strange, your code works with ArduinoIDE, but could not be linked with VisualMicro, giving the following errors: `core.a(main.cpp.o)*: (.literal._Z8loopTaskPv+0x4): undefined reference to setup()
Error linking for board M5Stack-Core-ESP32 Debug build failed for project 'MAX30100' core.a(main.cpp.o)*: (.literal._Z8loopTaskPv+0x8): undefined reference to loop()
core.a(main.cpp.o): In function loopTask(void) main.cpp:20: undefined reference to setup() main.cpp:23: undefined reference to loop()
collect2.exe*: error: ld returned 1 exit status`