This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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[] = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |