Polytech school project. RICM4 students, see http://air.imag.fr/index.php/Projets-2016-2017-Station_de_pompage_connect%C3%A9e for more information
Dependencies: SX1272Lib mbed WakeUp
Fork of SX1272PingPong by
pompe.cpp
- Committer:
- chevamax
- Date:
- 2017-04-01
- Revision:
- 17:cce0eada6d82
- Parent:
- 15:79a78f997f18
File content as of revision 17:cce0eada6d82:
#include "mbed.h" #include "pompe.h" #include "debug.h" #include "PinNames.h" Pompe::Pompe(PinName pin) : p(pin){ //p(pin); } void Pompe::activerPompe(){ p.write(1); } void Pompe::arreterPompe(){ p.write(0); } char Pompe::etat(){ return (char) p.read(); }