Lego Night Light

  Рет қаралды 74

Jonathan R

Jonathan R

Күн бұрын

Пікірлер: 3
@jonathanr4242
@jonathanr4242 2 жыл бұрын
#include #ifndef PSTR #define PSTR // Make Arduino Due happy #endif #define PIN 12 #define NUMPIXELS 1 Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); void setup() { pixels.begin(); pixels.setBrightness(255); Serial.begin(9600); } double mult_v[21] = {0.05,0.1,0.15, 0.2, 0.25, 0.3, 0.325, 0.35, 0.38, 0.4, 0.43, 0.46, 0.5,0.55,0.6,0.68, 0.7,0.75, 0.8, 0.9, 1.0}; int i = 0; double mult; void loop() { i++; mult = mult_v[(i % 21)]; Serial.println(mult); pixels.setPixelColor(0, pixels.gamma32(pixels.ColorHSV((uint16_t ) (mult*65536),255,192))); // pixels.setPixelColor(0, pixels.gamma32(pixels.ColorHSV((1*i) * 256 * 8 + i * 128 * 2))); pixels.show(); delay(1000); }
@rubydan7483
@rubydan7483 2 жыл бұрын
Very cool
@jonathanr4242
@jonathanr4242 2 жыл бұрын
Thank you
Custom Transformer Shatters All Voltage Records (ft. 3D Printing Nerd)
21:23
Redbox is DEAD… but the Kiosk still works?!?
10:14
Smokin' Silicon
Рет қаралды 523 М.
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 22 МЛН
龟兔赛跑:好可爱的小乌龟#short #angel #clown
01:00
Super Beauty team
Рет қаралды 61 МЛН
How Spider-Man's Web Swinging Changed
19:03
Alex Boucher
Рет қаралды 482 М.
How Many ERRORS Can You Fit in a Video?!
20:40
ElectroBOOM
Рет қаралды 3,2 МЛН
The Obscure Lore Of Zig And Sharko
20:43
Mung
Рет қаралды 404 М.
Minecraft Kids Content Is Absolutely Terrifying
29:01
CalebIsSalty
Рет қаралды 1,8 МЛН
esp32 to LLM and back again
16:45
Jonathan R
Рет қаралды 693
The coolest robot I've ever built!
19:40
Thomas Burns
Рет қаралды 4,8 МЛН
Remaking My Favorite Flipbook 30 YEARS LATER
15:44
Andymation
Рет қаралды 49 МЛН
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 22 МЛН