my new gear...

Dependencies:   mbed

Revision:
0:1456b6f84c75
diff -r 000000000000 -r 1456b6f84c75 nap.hpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nap.hpp	Fri Feb 25 05:20:11 2022 +0000
@@ -0,0 +1,16 @@
+#pragma once
+#include <mbed.h>
+
+class NAP
+{
+    public:
+        NAP(float nap_time);
+        void take_a_nap();
+        void setNaptime(float nap_time);
+        void restart();
+        Timer nap;
+    private:  
+        float nap_time_;
+        float now_time;
+        float prev_time;
+};
\ No newline at end of file