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.
Pixy2_Library.h
- Committer:
- Jordan406
- Date:
- 2020-03-04
- Revision:
- 3:d245cf5af33d
- Parent:
- I2CLCD.h@ 2:bc4583ce560e
File content as of revision 3:d245cf5af33d:
/*
* 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