Need help failure Compiling Code

#include <TestTouch.h>

void setup(){

void loop(){

I Get Error:

src\main.cpp:3:1: error: expected initializer before ‘void’
void setup(){

Any Ideas?

Can you show the contents of TestTouch.h?

And please also add the contents of your platformio.ini file.

BTW: If you are using the Arduino framework, you should add #include <Arduino.h> to the top of your main.cpp. It’s optional if you are using a .ino file in the Arduino IDE but required for proper C++ and PlatformIO.

TY for taht hint.

Was a missing “;” in TestTouch.h

i knew it was an easy one :slight_smile: