aiie/teensy/teensy-println.cpp
2020-07-11 07:39:56 -04:00

16 lines
284 B
C++

#include "teensy-println.h"
namespace arduino_preprocessor_is_buggy {
bool serialavailable() {
Threads::Scope locker(getSerialLock());
return Serial.available();
}
char serialgetch() {
Threads::Scope locker(getSerialLock());
return Serial.read();
}
};