fork from github

This commit is contained in:
2021-09-27 11:00:34 +02:00
commit 64ecf18a03
555 changed files with 266880 additions and 0 deletions

19
src/AudioLogger.h Normal file
View File

@@ -0,0 +1,19 @@
#include <Arduino.h>
#ifndef _AUDIOLOGGER_H
#define _AUDIOLOGGER_H
class DevNullOut: public Print
{
public:
virtual size_t write(uint8_t) { return 1; }
};
extern DevNullOut silencedLogger;
// Global `audioLogger` is initialized to &silencedLogger
// It can be initialized anytime to &Serial or any other Print:: derivative instance.
extern Print* audioLogger;
#endif