2023-10-20 20:51:54 +02:00
|
|
|
#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
|
2023-10-22 00:34:20 +02:00
|
|
|
void actLed(int nb, int start = 0);
|
2023-10-20 20:51:54 +02:00
|
|
|
|
|
|
|
// 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
|