"ledBlink" was not declared in this scope

You are calling into a function before declaring it – the C++ compiler has no idea what ledBlink() is if it can’t see the function declaration or definition beforehand. This is a difference in Arduino .ino files and actual pure .cpp files. See the FAQ on how to do the conversion.

1 Like