![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
my new gear...
control_theory/nap.hpp
- Committer:
- yootee
- Date:
- 2022-04-09
- Revision:
- 6:e7f2335456c8
- Parent:
- 3:a9b4b2565a23
File content as of revision 6:e7f2335456c8:
#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_; int now_time; int prev_time; };