New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WeMos D1R2 ESP2866 #458

Open
AAli77 opened this Issue May 30, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@AAli77

AAli77 commented May 30, 2017

Hi Sir, I am new to the Arduino Environment but my background is from programming field.

Issue: Code successfully compile but no result, can you please help me with this.

thanks

I am using WeMos D1R2 ESP2866, and WS2812B

The coding:
#include <FastLED.h>

#define NUM_LEDS 30
#define DATA_PIN 2

CRGB leds[NUM_LEDS];

void setup() {

FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);

Serial.begin(500000);

}

void loop() {

for(int i = 0; i < NUM_LEDS; i++) {

if (Serial.available() > 0) {
  
  Serial.readBytes( (char*)leds, NUM_LEDS * 3);
  Serial.flush();
}

FastLED.show();
delay(10);

}

}

@jasoncoon

This comment has been minimized.

Show comment
Hide comment
@jasoncoon

jasoncoon May 30, 2017

Contributor

Hello! This issue tracker is for bugs with the library. For general help, please read through the Frequently Asked Questions, and then post in the FastLED community, as mentioned in the Getting Help section.

Contributor

jasoncoon commented May 30, 2017

Hello! This issue tracker is for bugs with the library. For general help, please read through the Frequently Asked Questions, and then post in the FastLED community, as mentioned in the Getting Help section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment