Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Displays.h
- Revision:
- 0:052c10ad4275
diff -r 000000000000 -r 052c10ad4275 Displays.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Displays.h Wed Aug 26 19:45:02 2020 +0000
@@ -0,0 +1,38 @@
+#ifndef DISPLAYS_H
+#define DISPLAYS_H
+
+#include "mbed.h"
+#include "Noritake.h"
+#include <sstream>
+#include <iostream>
+#include <fstream>
+#include <stdarg.h>
+#include <vector>
+
+class Displays
+{
+public:
+ void init();
+ void displayTime(time_t &dt);
+ void displayCmd(const char* msg);
+ void header();
+ string Convertint(int data);
+ void step0();
+ void step1(bool c);
+ void step2(const char *str);
+ void step3(std::vector<string> vecBuf);
+ void step4(const char *str, bool muncul=false);
+ void step5(const char *str, bool muncul=true);
+ void displaybtn(const char *_ibtn);
+ void error(const int &c);
+
+ Displays(PinName TX, PinName RX);
+ ~Displays();
+private:
+ PinName tx;
+ PinName rx;
+ void writePort(uint8_t data);
+ void hardReset();
+};
+
+#endif
\ No newline at end of file