Moved pprintable serial to arduino directory.

This commit is contained in:
dario
2024-02-12 13:23:25 +01:00
parent 5d1fef1b53
commit 00e9eae43a
2 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#include <sta/debug/printing/printable_serial.hpp>
#ifdef STA_PLATFORM_ARDUINO
#include <sta/devices/arduino/hal.hpp>
namespace sta
{
PrintableSerial::PrintableSerial(unsigned long baud)
: Printable{}
{
Serial.begin(baud);
}
void PrintableSerial::print(const char * str, size_t length)
{
Serial.write(str);
}
} // namespace sta
#endif // STA_PLATFORM_ARDUINO