When building with Platform IO, base file must be "Afterburner.CPP" When building with ArduinoIDE, base file must be "Afterburner.INO" ie use a .CPP or .INO extension as appropriate. Arduino is lame is the reality :-(