Switch Button space bar Code?

Hi
I have no knowledge of this what so ever so bare with me.
I need to build a 1 button switch (easy part) to a Teensy LC board so it outputs a spacebar key press to 2 computers to start a programme, I've come across someone online who's done something similar but the code they used always throws an error up.
What am I doing wrong??

Cheers

You have copied the line numbers into your sketch. Remove them.

Please don't post pictures of code or errors; please post as described in "how to use this forum".

Ah, sorry about that, new user failure :grinning:
Anyhow thanks for that seems to compile ok, now just having a nightmare uploading it!
I maybe back

thanks

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.