Difference between revisions of "A Tarduino example done properly"
Jump to navigation
Jump to search
(Created page with "= main.cpp = #include <Arduino.h> #include "FooBar.h" void setup() { // put your setup code here, to run once: Serial.begin(115200); Serial.println("Howdee!")...") |
|||
| Line 13: | Line 13: | ||
void loop() { | void loop() { | ||
| + | // put your main code here, to run repeatedly: | ||
Function1(); | Function1(); | ||
| − | |||
} | } | ||
Revision as of 00:26, 8 December 2020
main.cpp
#include <Arduino.h>
#include "FooBar.h"
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Howdee!");
delay(10000);
}
void loop() {
// put your main code here, to run repeatedly:
Function1();
}
FooBar.h
void Function1();
Function1.cpp
#include <Arduino.h>
void Function1()
{
Serial.println("Hi Grant!");
}