Skip to content

Instantly share code, notes, and snippets.

View adammhaile's full-sized avatar

Adam Haile adammhaile

View GitHub Profile
@adammhaile
adammhaile / circle_test.py
Created June 4, 2015 04:37
LEDCircle Coord Mapping Test
from bibliopixel import *
from bibliopixel.led import *
from bibliopixel.animation import BaseCircleAnim
class DiskBloom(BaseCircleAnim):
def __init__(self, led, spread = 1):
super(DiskBloom, self).__init__(led)
self._dir = dir
self.spread = spread
#! /usr/bin/env python
'''
Generates Inkscape SVG file containing box components needed to
laser cut a tabbed construction box taking kerf and clearance into account
Copyright (C) 2011 elliot white elliot@twot.eu
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@adammhaile
adammhaile / LEDCircle_demo.py
Last active August 29, 2015 14:20
LEDCircle Demo with AllPixel and APA102 Disk from AdaFruit
from bibliopixel import *
from bibliopixel.led import *
from bibliopixel.animation import BaseCircleAnim
class DiskBloom(BaseCircleAnim):
def __init__(self, led):
super(DiskBloom, self).__init__(led)
self._dir = dir
@adammhaile
adammhaile / FastLEDDisk.ino
Last active November 27, 2020 03:11
Examples of using angle and radius to select pixels on a circular pixel layout using FastLED
#include "FastLED.h"
#define NUM_LEDS 255
#define DATA_PIN SPI_DATA
#define CLOCK_PIN SPI_CLOCK
// Define the array of leds
CRGB leds[NUM_LEDS];
@adammhaile
adammhaile / gist:9544a512efe8f848783b
Created April 28, 2015 16:25
Wyolum Cube Animation
from matrix_animations import *
class WyoCubeBloom(BaseMatrixAnim):
def __init__(self, led, dir = True):
super(WyoCubeBloom, self).__init__(led)
self._vector = genVector(16, 16)
self._dir = dir
self._panelOffset = [0,8,16,24,32,40]
def step(self, amt = 8):