first
Dependents: 17robo_fuzi 17robo_tokyo_kaede
cyclic_var.h
- Committer:
- echo_piyo
- Date:
- 2017-09-20
- Revision:
- 0:2cff474c9122
File content as of revision 0:2cff474c9122:
/* * [CyclicVar] * **任意の<int>0/1状態(sbdbtのボタン)を受け渡すことで、サイクリックし状態を<int>で返す * * [Public Member Functions] * CyclicVar(PinName pin) * **<Create> 宣言 * int cyclic(int state) * **0/1で状態を入力 * int getState() * **サイクリックの状態を出力 */ #ifndef MBED_CYCLIC_VAR_H #define MBED_CYCLIC_VAR_H #include "mbed.h" class CyclicVar{ public: void cyclic(int state_in); int getState(); private: bool flag; bool state; }; #endif