Small code refactor and began using freertos tasks

This commit is contained in:
2024-08-20 18:06:07 -04:00
parent 2074fd6b73
commit 64e84ad531
4 changed files with 135 additions and 64 deletions

View File

@@ -0,0 +1,28 @@
/**
* @file GlobalPrint.h
* @brief a method of printing serial data to all outgoing communication methods
*/
#pragma once
#include <Arduino.h>
namespace GlobalPrint{
static void Print(const char * s){
Serial.print(s);
}
static void Print(const String &s){
GlobalPrint::Print(s.c_str());
}
static void Println(const char * s){
GlobalPrint::Print(s);
GlobalPrint::Print("\n");
}
static void Println(const String &s){
GlobalPrint::Println(s.c_str());
}
}