Skip to content

Instantly share code, notes, and snippets.

View marmilicious's full-sized avatar

Marc Miller marmilicious

  • Glendale, California
View GitHub Profile
@StefanPetrick
StefanPetrick / basic_render_engine_v01
Last active December 8, 2023 02:50
Demo code for Stefans FastLED tutorial #2. It's a 2d render engine for procedural animations v0.1
// Polar basics demo for the
// FastLED Podcast #2
// https://www.youtube.com/watch?v=KKjFRZFBUrQ
//
// VO.1 preview version
// by Stefan Petrick 2023
// This code is licenced under a
// Creative Commons Attribution
// License CC BY-NC 3.0
@ChristofKaufmann
ChristofKaufmann / FastLED_RGBW.h
Created May 26, 2021 11:17
This is a workaround for FastLED library to make SK6812 RGBW led strips work.
/* FastLED_RGBW
*
* Hack to enable SK6812 RGBW strips to work with FastLED.
*
* Original code by Jim Bumgardner (http://krazydad.com).
* Modified by David Madison (http://partsnotincluded.com).
* Modified by Christof Kaufmann.
*
*/
@benpeoples
benpeoples / dmx.c
Created April 10, 2020 18:01
ESP32 DMX transmitting task
#define DMX1_IO (0)
#define DMX1_TX (16)
#define DMX1_RX (32)
#define BUF_SIZE (512)
uint8_t data[513]; // This is a global in this case
/*
So this is an incredibly simple transmit-only DMX task for ESP32 ESP-IDF V4
@kriegsman
kriegsman / Pacifica.ino
Last active January 27, 2024 04:25
Pacifica: gentle, blue-green ocean waves. For Dan.
//
// "Pacifica"
// Gentle, blue-green ocean waves.
// December 2019, Mark Kriegsman and Mary Corey March.
// For Dan.
//
#define FASTLED_ALLOW_INTERRUPTS 0
#include <FastLED.h>
FASTLED_USING_NAMESPACE
@samguyer
samguyer / BurningShelf.cpp
Created March 1, 2018 02:05
Code for a "fire" (three LED strip flames) triggered by a PIR sensor.
#include <FastLED.h>
#include <adel.h>
#define PIRPIN 6
#define FLAME_1_PIN 3
#define FLAME_1_SIZE 60
#define FLAME_2_PIN 4
#define FLAME_2_SIZE 24
@Jerware
Jerware / matrixEffect.ino
Last active January 16, 2022 19:15
Matrix LED Effect using FastLED
// Matrix effect by Jeremy Williams
// Designed for Game Frame
// http://www.ledseq.com
#include <FastLED.h>
// LED setup
#define kMatrixWidth 16
#define kMatrixHeight 16
#define DATA_PIN 2
@chemdoc77
chemdoc77 / CD77_FastLED_millis_replaces_delay.ino
Last active March 13, 2022 23:33
CD77_FastLED_millis_replaces_delay - Replaces delays with FastLED EVERY_N_MILLIS function
/* EVERY_N_MILLIS_I used to replace delay by Chemdoc77
Updated 20220313- replaced EVERY_N_MILLIS with EVERY_N_MILLIS_I
Note: When using the N_Millis FastLED function in a void funcition, you must use
EVERY_N_MILLIS_I and NOT EVERY_N_MILLIS.
*/
#include "FastLED.h"
#define NUM_LEDS 24
#define DATA_PIN 6
#define LED_TYPE NEOPIXEL
@jbum
jbum / gist:f9c97d1d64ce9e1d3072
Created April 1, 2015 18:36
Incremental Drift on 32x32 grid
// Incremental Drift on 32x32 grid - Jim Bumgardner
//
int nbrPoints = 1024;
int cx,cy;
float crad;
float cycleLength, speed;
int startOffset = 0;
int counter =0 ;
boolean isSquare = true;
anonymous
anonymous / FunkyClouds_alpha
Created June 30, 2014 10:19
FunkyClouds (alpha version)
/*
Funky Clouds Compendium (alpha version)
by Stefan Petrick
An ever growing list of examples, tools and toys
for creating one- and twodimensional LED effects.
Dedicated to the users of the FastLED v2.1 library
by Daniel Garcia and Mark Kriegsmann.