Hugo Hu / Mbed 2 deprecated BRAVEHEART

Dependencies:   mbed N5110 ShiftReg PinDetect

Revision:
19:89c3eeb3761b
diff -r 709ea375b0df -r 89c3eeb3761b CoverPage.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CoverPage.h	Thu Mar 25 03:43:10 2021 +0000
@@ -0,0 +1,26 @@
+#ifndef TITLE_SCREEN_H
+#define TITLE_SCREEN_H
+
+#include "State.h"
+
+/// @file CoverPage.h
+
+/// Used to display the splash screen which is shown when turning the device on.
+class CoverPage : public State
+{
+    public:
+        CoverPage(StateManager* fsm, N5110 *lcd, InputManager* input, Sound* sound, ShiftReg* shiftreg)
+                : State(fsm, lcd, input, sound, shiftreg) {init();}
+        
+        virtual void update(float dt);
+        virtual void render();
+        
+    private:
+        void init();
+        static void btnPress();
+        static const bool splashScreen[48][84];
+        static bool btnWasPressed;
+        
+};
+
+#endif
\ No newline at end of file