Acquisition entree
Revision 0:9428973e5a90, committed 2021-05-23
- Comitter:
- schnf30
- Date:
- Sun May 23 13:26:21 2021 +0000
- Commit message:
- Acquisition
Changed in this revision
acquisition.cpp | Show annotated file Show diff for this revision Revisions of this file |
acquisition.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 9428973e5a90 acquisition.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/acquisition.cpp Sun May 23 13:26:21 2021 +0000 @@ -0,0 +1,13 @@ +/* librairie de calcul pour projet + * cree le 09/ + * mis jour le + * par + */ +// calcule la valeur de la consigne de temperature a partir de la mesure de POT +#include "mbed.h" +#include "acquisition.h" +float AcquerirConsigne(PinName pin) +{ + AnalogIn pot1 (pin); + return (20.0 * pot1.read() + 10.0); +} \ No newline at end of file
diff -r 000000000000 -r 9428973e5a90 acquisition.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/acquisition.h Sun May 23 13:26:21 2021 +0000 @@ -0,0 +1,11 @@ +#ifndef _calcul +#define _calcul + +/* librairie de calcul pour projet + * cree le 09/ + * mis jour le + * par + */ + float AcquerirConsigne(PinName pin); + +#endif \ No newline at end of file