Profile cover photo
Profile photo
Roman “MrAntonka” Fojtik
36 followers
36 followers
About
Posts

Post has attachment
Toz fajne to tu je
PhotoPhotoPhoto
06.09.17
3 Photos - View album
Add a comment...

Post has attachment
64bit LED panel
Add a comment...

Post has attachment
New extruder
Photo
Photo
25.03.17
2 Photos - View album
Add a comment...

Post has attachment
Hi there,
I have no experience with FastLED.
I am trying to blink with WS2812B (you can see the code below) and when LED is changing color to another color then I don't know why but white color comes out :/ pls take a look at the video.

I am using Arduino MiniPro 16MHz/5V


CODE:
#include "FastLED.h"

#define NUM_LEDS 1
#define DATA_PIN 3

CRGB leds[NUM_LEDS];
unsigned long lastChange = 0;
const long interval = 500;

void setup() {
FastLED.addLeds<WS2812B, DATA_PIN, RGB>(leds, NUM_LEDS);
leds[0] = CRGB::Blue;
FastLED.show();
lastChange = millis();
}

void loop() {
unsigned long currentMillis = millis();
if (currentMillis - lastChange >= interval) {
lastChange = currentMillis;
int barva = random(0, 2);
if (barva == 0){
leds[0] = CRGB::Red;
}
if (barva == 1){
leds[0] = CRGB::Green;
}
if (barva == 2){
leds[0] = CRGB::Blue;
}
FastLED.show();
}
}

Post has shared content
nice,
[Oliver Tolar] and [Denis Herrmann], two students from the Zurich University of Applied Sciences (ZHAW), designed and produced a 3D printer prototype that has a movable printing bed that can tilt. By tilting, objects with critical overhangs can be printed…
Add a comment...

Post has attachment
Holčička svetlici vypustila
Add a comment...

Post has attachment
Má éra s IOT může začít
NodeMCU + LUA on ESP8266
Photo
Add a comment...

Post has attachment
Jak přijít o 3500kc ? No dajte složit PC někomu komu je 15 a je v 7 tride
PhotoPhotoPhotoPhotoPhoto
30.12.16
5 Photos - View album
Add a comment...

Post has shared content
Add a comment...

Post has shared content
Add a comment...
Wait while more posts are being loaded