Skip to content

Instantly share code, notes, and snippets.

@ahmadx87
ahmadx87 / cloudSettings
Last active March 16, 2022 21:06
Visual Studio Code Settings Sync Gist
{"lastUpload":"2022-03-16T21:05:56.428Z","extensionVersion":"v3.4.3"}
@ahmadx87
ahmadx87 / ColorWavesWithPalettes.ino
Created June 30, 2017 07:39 — forked from kriegsman/ColorWavesWithPalettes.ino
ColorWavesWithPalettes - demo of using cpt-city palettes in FastLED code
#include "FastLED.h"
// ColorWavesWithPalettes
// Animated shifting color waves, with several cross-fading color palettes.
// by Mark Kriegsman, August 2015
//
// Color palettes courtesy of cpt-city and its contributors:
// http://soliton.vm.bytemark.co.uk/pub/cpt-city/
//
// Color palettes converted for FastLED using "PaletteKnife" v1:
#include <ESP8266WiFi.h>
#include "FastLED.h"
#include "EEPROM.h"
#define DATA_PIN 4
#define LED_TYPE WS2811
#define COLOR_ORDER GRB
CRGB * leds;
uint16_t NUM_LEDS = 1;
@ahmadx87
ahmadx87 / sinelon.ino
Created August 14, 2016 18:51 — forked from kriegsman/sinelon.ino
"sinelon" with no visual gaps at any speed or pixel count
// Updated sinelon (no visual gaps)
void sinelon()
{
// a colored dot sweeping
// back and forth, with
// fading trails
fadeToBlackBy( leds, NUM_LEDS, 20);
int pos = beatsin16(13,0,NUM_LEDS);
static int prevpos = 0;