Mattéo

Dependencies:   mbed Pixy2_Library2

Committer:
benbrou06
Date:
Fri May 15 16:50:51 2020 +0000
Revision:
0:fc353d12d2b1
Matteo

Who changed what in which revision?

UserRevisionLine numberNew contents of line
benbrou06 0:fc353d12d2b1 1 /*
benbrou06 0:fc353d12d2b1 2 * mbed library for Pixy2 Camera
benbrou06 0:fc353d12d2b1 3 * Copyright (c) 2019 Jordan DUCHÊNE
benbrou06 0:fc353d12d2b1 4 */
benbrou06 0:fc353d12d2b1 5
benbrou06 0:fc353d12d2b1 6
benbrou06 0:fc353d12d2b1 7
benbrou06 0:fc353d12d2b1 8 #ifndef Pixy2_Library_H
benbrou06 0:fc353d12d2b1 9 #define Pixy2_Library_H
benbrou06 0:fc353d12d2b1 10 #include "mbed.h"
benbrou06 0:fc353d12d2b1 11
benbrou06 0:fc353d12d2b1 12 /**
benbrou06 0:fc353d12d2b1 13 Pixy2_Library class
benbrou06 0:fc353d12d2b1 14 */
benbrou06 0:fc353d12d2b1 15 class Pixy2_Library {
benbrou06 0:fc353d12d2b1 16
benbrou06 0:fc353d12d2b1 17 I2C* composant;
benbrou06 0:fc353d12d2b1 18 int I2Caddress;
benbrou06 0:fc353d12d2b1 19
benbrou06 0:fc353d12d2b1 20 public:
benbrou06 0:fc353d12d2b1 21
benbrou06 0:fc353d12d2b1 22 Pixy2_Library (PinName p_sda, PinName p_scl, int address);
benbrou06 0:fc353d12d2b1 23 void Pixy2_WhiteLED(bool);
benbrou06 0:fc353d12d2b1 24 void Pixy2_SetServo(int,int);
benbrou06 0:fc353d12d2b1 25 void Pixy2_RGBLED(bool);
benbrou06 0:fc353d12d2b1 26 int Pixy2_GetBlock(char,int);
benbrou06 0:fc353d12d2b1 27
benbrou06 0:fc353d12d2b1 28 };
benbrou06 0:fc353d12d2b1 29
benbrou06 0:fc353d12d2b1 30 #endif