WS2812B (1 Viewer)

Kotik

MP Donator
  • Premium Supporter
  • March 19, 2009
    699
    485
    Athens
    Home Country
    Greece Greece
    Thanx for the info.
    I will have a look at your hue project. I wanted something like that along my led setup.
     

    Kotik

    MP Donator
  • Premium Supporter
  • March 19, 2009
    699
    485
    Athens
    Home Country
    Greece Greece
    Please can someone explain what is Atmoduino v2? Is it an improved version of Atmoduino? Is anyone able to use it? Is there any info regarding it?
     

    Quarter

    MP Donator
  • Premium Supporter
  • June 21, 2010
    722
    138
    Queenstown
    Home Country
    New Zealand New Zealand
    Code:
    // AtmoduinoV2 by NevCairiel, based on RickDB Atmoduino V1
    #include <FastLED.h>
    // Set the number of leds in the strip.
    #define NUM_LEDS 188
    // type of the LED controller
    #define LED_TYPE WS2812B
    // data and clock pins
    #define DATA_PIN 10
    
    CRGB leds[NUM_LEDS];
    void setup(){
      Serial.begin(115200);
      FastLED.addLeds<LED_TYPE, DATA_PIN>(leds, NUM_LEDS);
    }
    int readByte(){
      while (Serial.available() == 0){ /* wait for data */
      }
      return Serial.read();
    }
    
    void loop() {
      if(readByte() == 0xD7){
        if(readByte() == 0xEE){
          if(readByte() == 0x23){
            int channels = readByte();
            for(int dot = 0; dot < channels; dot++){
              leds[dot].g = readByte();
              leds[dot].r = readByte();
              leds[dot].b = readByte();
            }
            FastLED.show();
          }
        }
      }
    }
    Please can someone explain what is Atmoduino v2? Is it an improved version of Atmoduino? Is anyone able to use it? Is there any info regarding it?

    Yes I can use it, it's the only one I can use without any problems. I doesn't have anyway to set the baud rate which was why I couldn't find it. When I try to use Atmoduino i just can't get it working.
     
    Last edited:

    Users who are viewing this thread

    Top Bottom