![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
my new gear...
portSet.hpp
- Committer:
- yootee
- Date:
- 2022-03-27
- Revision:
- 2:e7b09385d197
- Parent:
- 0:1456b6f84c75
- Child:
- 12:562f433b5e98
File content as of revision 2:e7b09385d197:
#pragma once #include <mbed.h> inline double constrain(double x,double minimum,double maximum){ return (x < minimum ? minimum : x > maximum ? maximum : x); } typedef struct Port{ PinName pin[2]; }Port;