first lib
Dependents: 17robo_fuzi 17robo_tokyo_kaede
Diff: limit.h
- Revision:
- 0:9665aacf40f0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/limit.h Sun Sep 24 05:24:56 2017 +0000 @@ -0,0 +1,17 @@ +/* +dataのmax,minの範囲内の数値を返す関数 + +limiti([int]data, [int]max, [int]min); //int用 +limitf([float]data, [float]max, [float]min); //float用 + +*/ + +#ifndef MBED_LIMIT_H +#define MBED_LIMIT_H + +#include "mbed.h" + +int limiti(int data, int max, int min); +float limitf(float data, float max, float min); + +#endif \ No newline at end of file