arduino stuffs
Diffstat (limited to 'mp3player/arduino/error.h')
| -rw-r--r-- | mp3player/arduino/error.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/mp3player/arduino/error.h b/mp3player/arduino/error.h deleted file mode 100644 index 89d6a2e..0000000 --- a/mp3player/arduino/error.h +++ /dev/null @@ -1,30 +0,0 @@ -#ifndef ERR_H -#define ERR_H - -#include "display/display.h" - -#define ERR_LIGHT 12 - -class Error { -public: - Error(String err) { - Serial.print(F("E: ")); - Serial.println(err); - OLED::clear(); - OLED::println("E: " + err); - OLED::flush(); - blink_err_light(); - }; - -private: - void blink_err_light() { - pinMode(ERR_LIGHT, OUTPUT); - while (true) { - digitalWrite(ERR_LIGHT, HIGH); - delay(100); - digitalWrite(ERR_LIGHT, LOW); - delay(100); - } - } -}; -#endif
\ No newline at end of file |