Mattéo
Dependencies: mbed Pixy2_Library2
Pixy2_Library.h@1:b91387b1d393, 2020-05-15 (annotated)
- Committer:
- benbrou06
- Date:
- Fri May 15 16:52:41 2020 +0000
- Revision:
- 1:b91387b1d393
- Parent:
- 0:fc353d12d2b1
Test
Who changed what in which revision?
User | Revision | Line number | New 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 |