Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Pixy2_Library.h
- 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