Yeah,But why you can override the main()-method? in a project,The main() should not be the only one? I didn't understand the principle of internal ^_^ Looking forward to your reply!
loop()/setup()/main are so called weak functions (__attribute__ (weak)) which makes them overridable. We take advantage of this to simplify things for the sketch developer.
@Magic-W it is the Arduino project that has the attribute, making it possible for other projects (such as MySensors) or a sketch developer to override.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.