Bonjour à tous
Je cherche à faire fonctionner un ring neopixel de 24 Leds
Je suis tombé sur ce site [GUIDE] Arduino Utilise NeoPixel Ring WS2812B + code, câblage
Apres avoir trouvé la bibliothèque hsv.h , je pensais pouvoir tester...
malheureusement il y a un soucis que je n'arrive pas à solutionner , donc je me tourne vers vous ( tout en continuant mes recherches)
'getPixelColorHsv' was not declared in this scope
#include "Adafruit_NeoPixel.h"
#include "hsv.h"
#define PIN 6
#define CNT 24
#define MAXHUE 256*6
int pos = 0;
Adafruit_NeoPixel strip = Adafruit_NeoPixel(CNT, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
strip.begin();
}
void loop() {
for (int i = 0; i < CNT; i++)
strip.setPixelColor((i + pos) % CNT, getPixelColorHsv(i, i * (MAXHUE / CNT), 255, 10));
strip.show();
pos++;
pos %= CNT;
delay(50);
}
Merci à vous pour toute l'aide apportée