Skip to content

Instantly share code, notes, and snippets.

View Aircoookie's full-sized avatar
Developing WLED

Christian Schwinne Aircoookie

Developing WLED
View GitHub Profile
@Aircoookie
Aircoookie / index.html
Created March 29, 2022 09:01
Pixels.svg (Pixels to SVG Conversion via <canvas>)
<header class="container">
<h1><a href="https://codepen.io/shshaw/full/XbxvNj" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -0.5 61 11.5" shape-rendering="crispEdges" aria-labelledby="title">
<title>Pixels to SVG</title>
<g stroke="#f05555"><path stroke="currentColor" d="M0 0h61M0 1h61M0 2h2M5 2h2M8 2h1M10 2h3M14 2h1M19 2h1M21 2h5M29 2h2M41 2h3M47 2h1M49 2h3M53 2h2M58 2h3M0 3h2M3 3h2M6 3h1M8 3h1M10 3h3M14 3h1M16 3h4M21 3h4M26 3h5M33 3h1M41 3h2M44 3h4M49 3h3M53 3h1M55 3h6M0 4h2M3 4h2M6 4h1M8 4h2M11 4h1M13 4h2M18 4h2M21 4h4M26 4h5M32 4h3M37 4h2M41 4h2M44 4h4M49 4h3M53 4h1M55 4h6M0 5h2M5 5h2M8 5h3M12 5h3M16 5h4M21 5h5M28 5h3M33 5h1M36 5h1M39 5h1M41 5h3M46 5h2M49 5h3M53 5h1M55 5h1M58 5h3M0 6h2M3 6h4M8 6h2M11 6h1M13 6h2M16 6h4M21 6h7M29 6h2M33 6h1M36 6h1M39 6h1M41 6h5M47 6h2M50 6h1M52 6h2M55 6h3M59 6h2M0 7h2M3 7h4M8 7h1M10 7h3M14 7h1M16 7h4M21 7h7M29 7h2M34 7h1M37 7h2M41 7h5M47 7h2M50 7h1M52 7h2M55 7h3M59 7h2M0 8h2M3 8h4M8 8h1M10 8h3M14 8h1M19 8h1M24 8h1M28 8h3M41 8h2M46 8h4M51 8h4M
@Aircoookie
Aircoookie / article.md
Last active June 4, 2021 13:02
WA Article about WLED

Inventor and internet star

Christian Schwinne (22) gives value to the technology enthusiast scene

Original article (in German) by Michael Imberg, translated by Aircoookie

Brief explanation of the technology:
What is special about the WLED project?
Normal LED strips are powered up and only light up in one color.
@Aircoookie
Aircoookie / MIDI_Stepper_Plus.ino
Created April 18, 2021 23:10
Aircoookie modification of MIDI Stepper motor driver Arduino sketch by jzkmath
#include <MIDI.h>
#include "pitches.h"
/*
* MIDI STEPPER +
*
* By Aircoookie
*
* Based on MIDI STEPPER V1 by Jonathan Kayne / jzkmath
* April 2018
@Aircoookie
Aircoookie / NpbWrapper.h
Created January 8, 2020 14:19
WS2801 NpbWrapper (compiles, untested)
//this code is a modified version of https://github.com/Makuna/NeoPixelBus/issues/103
#ifndef NpbWrapper_h
#define NpbWrapper_h
//PIN CONFIGURATION
#define LEDPIN 2 //strip pin. Any for ESP32, gpio2 or 3 is recommended for ESP8266 (gpio2/3 are labeled D4/RX on NodeMCU and Wemos)
//#define USE_APA102 // Uncomment for using APA102 LEDs.
#define USE_WS2801 // Uncomment for using WS2801 LEDs.
//#define USE_LPD8806// Uncomment for using LPD8806
//#define WLED_USE_ANALOG_LEDS //Uncomment for using "dumb" PWM controlled LEDs (see pins below, default R: gpio5, G: 12, B: 15, W: 13)
@Aircoookie
Aircoookie / NpbWrapper.h
Created January 8, 2020 14:19
WS2801 NpbWrapper (compiles, untested)
//this code is a modified version of https://github.com/Makuna/NeoPixelBus/issues/103
#ifndef NpbWrapper_h
#define NpbWrapper_h
//PIN CONFIGURATION
#define LEDPIN 2 //strip pin. Any for ESP32, gpio2 or 3 is recommended for ESP8266 (gpio2/3 are labeled D4/RX on NodeMCU and Wemos)
//#define USE_APA102 // Uncomment for using APA102 LEDs.
#define USE_WS2801 // Uncomment for using WS2801 LEDs.
//#define USE_LPD8806// Uncomment for using LPD8806
//#define WLED_USE_ANALOG_LEDS //Uncomment for using "dumb" PWM controlled LEDs (see pins below, default R: gpio5, G: 12, B: 15, W: 13)
//Custom mode for Heiliger Gral
uint16_t WS2812FX::mode_engine()
{
if (SEGMENT_LENGTH < 30) return mode_static();
uint16_t stage = SEGMENT_RUNTIME.counter_mode_step;
//fill all cylinders with background color
fill(SEGMENT.colors[1]);
//ignition stage 0-255 fading up 256-511 fading down 512-x pause
@Aircoookie
Aircoookie / NpbWrapper.h
Last active May 23, 2023 21:00
Modified for 5050 PWM RGB leds
//MODIFIED to drive 5050 RGB strip via PWM on GPIO 12(R),13(G),14(B), UNTESTED
//this code is a modified version of https://github.com/Makuna/NeoPixelBus/issues/103
#ifndef NpbWrapper_h
#define NpbWrapper_h
//#define WORKAROUND_ESP32_BITBANG
//see https://github.com/Aircoookie/WLED/issues/2 for flicker free ESP32 support
//PIN CONFIGURATION