Mattéo

Dependencies:   mbed Pixy2_Library2

Revision:
0:fc353d12d2b1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Pixy2_Library.h	Fri May 15 16:50:51 2020 +0000
@@ -0,0 +1,30 @@
+/*
+ * mbed library for Pixy2 Camera
+ * Copyright (c) 2019 Jordan DUCHÊNE
+ */
+
+
+ 
+#ifndef Pixy2_Library_H
+#define Pixy2_Library_H
+#include "mbed.h"
+
+/**
+  Pixy2_Library class
+ */
+class Pixy2_Library {
+
+    I2C* composant;
+    int I2Caddress;
+    
+public:
+
+    Pixy2_Library (PinName p_sda, PinName p_scl, int address);
+    void Pixy2_WhiteLED(bool);
+    void Pixy2_SetServo(int,int);
+    void Pixy2_RGBLED(bool);
+    int Pixy2_GetBlock(char,int);
+
+};
+
+#endif
\ No newline at end of file