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 Semtech

Committer:
chevamax
Date:
Sat Apr 01 12:29:59 2017 +0000
Revision:
17:cce0eada6d82
Parent:
15:79a78f997f18
Version finale

Who changed what in which revision?

UserRevisionLine numberNew contents of line
chevamax 15:79a78f997f18 1 #include "mbed.h"
chevamax 15:79a78f997f18 2 #include "pompe.h"
chevamax 15:79a78f997f18 3 #include "debug.h"
chevamax 15:79a78f997f18 4 #include "PinNames.h"
chevamax 15:79a78f997f18 5
chevamax 17:cce0eada6d82 6 Pompe::Pompe(PinName pin) : p(pin){
chevamax 15:79a78f997f18 7 //p(pin);
chevamax 15:79a78f997f18 8 }
chevamax 15:79a78f997f18 9 void Pompe::activerPompe(){
chevamax 17:cce0eada6d82 10 p.write(1);
chevamax 15:79a78f997f18 11 }
chevamax 15:79a78f997f18 12 void Pompe::arreterPompe(){
chevamax 17:cce0eada6d82 13 p.write(0);
chevamax 15:79a78f997f18 14 }
chevamax 15:79a78f997f18 15
chevamax 15:79a78f997f18 16 char Pompe::etat(){
chevamax 17:cce0eada6d82 17 return (char) p.read();
chevamax 15:79a78f997f18 18 }