Skip to content

Instantly share code, notes, and snippets.

@bonjurroughs
bonjurroughs / New XY()
Created January 5, 2015 05:52
Combined XY();
uint16_t XY( uint8_t x, uint8_t y)
{
if(shades==true)
{
// any out of bounds address maps to the first hidden pixel
if( (x >= WIDTH) || (y >= HEIGHT) ) {
return (LAST_VISIBLE_LED + 1);
}
const uint8_t ShadesTable[] = {
@bonjurroughs
bonjurroughs / noise balls
Created December 7, 2014 00:33
Noise on pot(s) with bouncing ball(s)
#include<FastLED.h>
#include<OneButton.h>
#define POT_1 A14
#define POT_2 A0
#define BUTTON A1
#define LED_PIN 29
byte BRIGHTNESS = 100;
#define LED_TYPE WS2812B
#define COLOR_ORDER GRB