my new gear...

Dependencies:   mbed

Committer:
yootee
Date:
Sun Mar 27 04:51:16 2022 +0000
Revision:
3:a9b4b2565a23
Parent:
nap.hpp@0:1456b6f84c75
Child:
6:e7f2335456c8
my new gear...

Who changed what in which revision?

UserRevisionLine numberNew contents of line
yootee 0:1456b6f84c75 1 #pragma once
yootee 0:1456b6f84c75 2 #include <mbed.h>
yootee 0:1456b6f84c75 3
yootee 0:1456b6f84c75 4 class NAP
yootee 0:1456b6f84c75 5 {
yootee 0:1456b6f84c75 6 public:
yootee 0:1456b6f84c75 7 NAP(float nap_time);
yootee 0:1456b6f84c75 8 void take_a_nap();
yootee 0:1456b6f84c75 9 void setNaptime(float nap_time);
yootee 0:1456b6f84c75 10 void restart();
yootee 0:1456b6f84c75 11 Timer nap;
yootee 0:1456b6f84c75 12 private:
yootee 0:1456b6f84c75 13 float nap_time_;
yootee 0:1456b6f84c75 14 float now_time;
yootee 0:1456b6f84c75 15 float prev_time;
yootee 0:1456b6f84c75 16 };