Benjamin Brou / Pixy2_Library2
Revision:
3:d245cf5af33d
Parent:
2:bc4583ce560e
diff -r bc4583ce560e -r d245cf5af33d Pixy2_Library.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Pixy2_Library.h	Wed Mar 04 15:23:41 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