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.h@17:cce0eada6d82, 2017-04-01 (annotated)
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
chevamax | 15:79a78f997f18 | 1 | #ifndef __POMPE_H |
chevamax | 15:79a78f997f18 | 2 | #define __POMPE_H |
chevamax | 15:79a78f997f18 | 3 | |
chevamax | 15:79a78f997f18 | 4 | #include "mbed.h" |
chevamax | 15:79a78f997f18 | 5 | |
chevamax | 17:cce0eada6d82 | 6 | //Représentation de la pompe |
chevamax | 15:79a78f997f18 | 7 | class Pompe { |
chevamax | 15:79a78f997f18 | 8 | public: |
chevamax | 15:79a78f997f18 | 9 | Pompe(PinName pin); |
chevamax | 15:79a78f997f18 | 10 | void activerPompe(); |
chevamax | 15:79a78f997f18 | 11 | void arreterPompe(); |
chevamax | 15:79a78f997f18 | 12 | char etat(); |
chevamax | 15:79a78f997f18 | 13 | |
chevamax | 15:79a78f997f18 | 14 | private: |
chevamax | 17:cce0eada6d82 | 15 | DigitalOut p; |
chevamax | 15:79a78f997f18 | 16 | }; |
chevamax | 15:79a78f997f18 | 17 | |
chevamax | 15:79a78f997f18 | 18 | #endif // __POMPE_H |