A Tarduino example done properly

From The TinkerNet Wiki
Revision as of 23:25, 7 December 2020 by Tinker (talk | contribs) (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!")...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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() {
  Function1();
  // put your main code here, to run repeatedly:
}

FooBar.h

void Function1();

Function1.cpp

#include <Arduino.h>

void Function1()
{
    Serial.println("Hi Grant!");
}