31 lines
720 B
C
31 lines
720 B
C
|
#ifndef NEOLED_H
|
||
|
#define NEOLED_H 0
|
||
|
|
||
|
#include <Adafruit_NeoPixel.h>
|
||
|
|
||
|
// Classe LedLib : Gestion de l'allumage des LEDs en fonction du Rotary
|
||
|
// Class LedLib : Manages LEDs colors according to the Rotary
|
||
|
class LedLib{
|
||
|
public :
|
||
|
LedLib(int pixelCount, int pixelPin, int bright);
|
||
|
|
||
|
// Fonction pour allumer correctement les LEDs en fonction du Rotary
|
||
|
// Function to manage LEDs colors according to the Rotary
|
||
|
void actLed(int nb);
|
||
|
|
||
|
// Fonction qui renvoie le nombre de LEDs allumées
|
||
|
// Function that returns the number of LEDs lit
|
||
|
int getledNB();
|
||
|
|
||
|
void okBlink();
|
||
|
|
||
|
private :
|
||
|
// Le nombre de LEDs allumées
|
||
|
// Amount of LEDs lit
|
||
|
int ledNb;
|
||
|
|
||
|
Adafruit_NeoPixel* strip;
|
||
|
};
|
||
|
|
||
|
#endif
|