/*
* Null implementation of Serial to dump debug print into blackhole
*/#include"Arduino.h"#include"sendchar.h"#include"USBAPI.h"voidSerial_::begin(uint16_tbaud_count){}voidSerial_::end(void){}voidSerial_::accept(void){}intSerial_::available(void){return0;}intSerial_::peek(void){return-1;}intSerial_::read(void){return-1;}voidSerial_::flush(void){}size_tSerial_::write(uint8_tc){sendchar(c);return1;}
Serial_::operatorbool(){returntrue;}
Serial_ Serial;