Created
August 25, 2018 11:13
-
-
Save Pharap/6f08bdf052b9a81f97b969a2f03347fc to your computer and use it in GitHub Desktop.
ino vs cpp example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // cpp files require these includes | |
| // ino files do not | |
| #include <Arduino.h> | |
| #include <Serial.h> | |
| // cpp files require this predeclaration | |
| // ino files do not | |
| void sendMessage(void); | |
| void setup(void) | |
| { | |
| } | |
| void loop(void) | |
| { | |
| sendMessage(); | |
| } | |
| void sendMessage(void) | |
| { | |
| Serial.println(F("Hello world")); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void setup(void) | |
| { | |
| } | |
| void loop(void) | |
| { | |
| sendMessage(); | |
| } | |
| void sendMessage(void) | |
| { | |
| Serial.println(F("Hello world")); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment