Arnaud Apelbaum / Mbed OS Led_circle

Dependencies:   lcd neoPixelRing12 view2 BSP_DISCO_F746NG view1 button

NeoPixelRing12/NeoPixelRing12.h

Committer:
Rhamao
Date:
2020-06-04
Revision:
7:1887c4e4b5de
Child:
8:aa1e315bf408

File content as of revision 7:1887c4e4b5de:

#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