PINOUT à jour, trame CAN OK

Dependencies:   mbed ident_crac

Code carte pompe

Revision:
0:84a8c24e29ae
Child:
2:4cc8fa2f64be
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/class_ventouse.h	Mon May 06 07:53:34 2019 +0000
@@ -0,0 +1,36 @@
+#ifndef CLASS_VENTOUSE_H
+#define CLASS_VENTOUSE_H
+
+#include "mbed.h"
+
+
+class Ventouse
+{
+public:
+    Ventouse(PinName pinPompe, PinName pinElectrovanne, PinName pinCapteurPression);
+    
+    void attraper();
+    void relacher();
+    
+    int getPression();
+    int getPompe();
+    
+    
+    void setPompe(float val);
+    void setElectrovanne(float val);
+    
+
+
+
+private:
+    PwmOut* m_pompe;
+    PwmOut* m_electrovanne;
+    AnalogIn* m_pression;
+    
+    PinName m_pinPompe, m_pinElectrovanne, m_pinCapteurPression;
+
+    
+};
+
+#endif //CLASS_VENTOUSE_H
+