Wie kann ich intelligente Lichter mit dem ws2812b mit einem Esp8266 machen?
First you will need several components: * NodeMcu ESP8266 cp2102 * WS2812B 1m PCB Led strip White 30leds/m no waterproof * Logic Level Converter 3.3v / 5v Bidirectional (Level Converter) * Feed source 5v 8A 40W You will also have to schedule a Controller: We will help us from the Neopixel library of Adafruit. In Platform the library is no28. And we will use its example code (we will need to change only the control pin we put in (PIN), and the number of leds to be controlled (NUMPIXELS):(NEO_GRB + NEO_KHZ800); int delayval = 500; // delay for half a second void void setup() { // This is for Trinket 5V 16MHz, you can remove these three lines if you are not using a Trinket #if defined (_AVR_ATtiny85___) if (F_CPU == 16000000) cl_prescale_set(clock_div_1); #endif /// End of trinket special code pixels.begin(); // This initializes the NeoPixel library. } void loop(); { // For a set of NeoPixelsel to the first NeoPixeltelel is 0, second is 1, all the way up to the count of pixels minus one.They're used here to // set pin numbers: const int ledPin = 4; // the number of the neopixel strip const in numLeds = 30; //Adafruit_NeoPixel pixels = 4; // the number of the neopixel stript numLeds = 30; //Adafruit_NeoPixel; //Adafruit_NeoPixel(numLeds, ledPin, NEO_GRB + NEO_KHZ800); // Input a value 0 to 255 to get a color value. // The colours are a transition r - g - b - back to r. uint32_t Wheel(byte WheelPos) { if(Wheel Post < 85) { return post { return strip.Color(WheelPost* 3, 255 - W55 - Wheel Post Post* 3, 0); } Post post( 0); } Post post(by Wheelpoel( Netherlands WheelWeel Post + 170 Post;