Interfaçage NeoPixel Ring 12, LPRO MECSE, Arnaud A.
Diff: neoPixelRing12.h
- Revision:
- 0:754bf033bd47
- Child:
- 1:76fb4b762ab1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/neoPixelRing12.h Wed Jun 17 16:33:48 2020 +0000 @@ -0,0 +1,24 @@ +#ifndef NEO_PIXEL_RING_12 +#define NEO_PIXEL_RING_12 + +#include "mbed.h" +#include "string.h" + + +#define RST_TIME_IN_US 70 + +class NeoPixelRing12 +{ + public: + NeoPixelRing12(DigitalOut _digitalOutPin); + bool rst(); + bool rgbToDataStructure(char* rgbCode); + bool bit(bool value); + bool setLights(int nbOfLeds, char* rgbCode); + + private: + DigitalOut digitalOutPin; + bool rgbDataStructure[24]; +}; + +#endif \ No newline at end of file