If you’re looking at Arduboy.h it sounds like you’re using the Arduboy library. This library is for legacy sketches and is no longer being maintained. For new sketches, you should use the Arduboy2 library
If you read my post following the one above, you’ll see that for sketches you don’t have to deal with .h and .cpp files. It’s usually easier to only use .ino files for sketches.
.h.cpp.c and other file types are used by Arduino libraries, such as Arduboy2, but they aren’t required in Arduino sketches.
Thanks, Scott. I’ll switch to the new library. Could I ask one more noob question, though?
How can Arduboy.cpp’s begin() function call boot(), when it’s declared as protected in core.h? I see that the Arduboy class inherits ArduboyCore, but what’s the distinction between public and private if the inheriting class can call the private function? I was under the impression that boot() could only be called by another function within ArduboyCore.
I’m guessing that while I couldn’t create an instance of ArduboyCore and call instance.boot(), I can create an instance of Arduboy, which inherits from ArduboyCore, and call boot() from within it. Is that correct?