Skip to content

Instantly share code, notes, and snippets.

View jpro56's full-sized avatar

Jean-Pierre Roy jpro56

View GitHub Profile
@jpro56
jpro56 / gist:55c00724a724ae5ea6ca6d2e6f437b53
Created November 18, 2018 14:21
My latest cube sketch
#define USE_OCTOWS2811
#include<OctoWS2811.h>
#include <FastLED.h>
#include <Math.h>
#define CUBE_SIZE 8
#define NUM_LEDS 513 // One extra LED added to take care of invalid LED addresses !!
#define LEDS_PER_PIN 64 // Only used within setup to define the physical aspect of the led array
CRGB leds[NUM_LEDS];
@jpro56
jpro56 / gist:43a2f46bfbf86f38e62c
Created June 9, 2015 20:13
My fire lamp code
/* Designed to drive an array of 8 strips of 25 WS2812b RGB LEDs with different display functions
0) Off No settings / no brightness control
1) Real fire No settings - potentiometer #2 immediately defaults to brightness control
2) Color Fire Setttings = goes through the rainbow hues to select the basic flame color
3) Rainbow Fire No settings - potentiometer #2 immediately defaults to brightness control
4) Barberpole No settings - potentiometer #2 immediately defaults to brightness control
5) Rainbow barberpole Setttings = goes through the rainbow hues to select the basic color
6) Rainbow No settings - potentiometer #2 immediately defaults to brightness control
7) Vertical rainbow No settings - potentiometer #2 immediately defaults to brightness control
8) Horizonatl Rainbow No settings - potentiometer #2 immediately defaults to brightness con
@jpro56
jpro56 / gist:a98279acc78ec7bd2af5
Created May 25, 2015 17:18
My fireworks on a 16x25 Ws2812b array using Arduino MEGA 2560
#include "FastLED.h"
// Originaly designed for a 16x16 matrix by Mark Kriegsman, July 2013
// Updated for a 16 strip X 25 WS2812b LED array with each strip driven by a separate pin
// Modified to have multiple shell launch and did some code clean-up wehe possible.
#define PIXEL_WIDTH 16
#define PIXEL_HEIGHT 25
CRGB leds[PIXEL_WIDTH][PIXEL_HEIGHT];