my new gear...

Dependencies:   mbed

Committer:
yootee
Date:
Sun Mar 27 04:39:16 2022 +0000
Revision:
2:e7b09385d197
Parent:
0:1456b6f84c75
Child:
12:562f433b5e98
arrc?

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 2:e7b09385d197 4 inline double constrain(double x,double minimum,double maximum){
yootee 2:e7b09385d197 5 return (x < minimum ? minimum : x > maximum ? maximum : x);
yootee 2:e7b09385d197 6 }
yootee 2:e7b09385d197 7
yootee 0:1456b6f84c75 8 typedef struct Port{
yootee 0:1456b6f84c75 9 PinName pin[2];
yootee 0:1456b6f84c75 10 }Port;