Skip to content

Instantly share code, notes, and snippets.

@Mr-NVR
Mr-NVR / Rainbow.ino
Created December 5, 2017 18:58
pololu-apa102 test for ESP32 APA102 loosely based on https://github.com/pololu/apa102-arduino rainbow example
/*************************************************
*
* This does ***NOT*** use FastLED
* instead, uses:
*
* https://github.com/pololu/apa102-arduino
*
*************************************************/
/* This example shows how to display a changing rainbow on
* an APA102-based LED strip. */
@Mr-NVR
Mr-NVR / DemoReel100.ino
Last active December 4, 2017 19:50
FastLED test for ESP32 APA102 based on DemoReel100 example
#include "FastLED.h"
FASTLED_USING_NAMESPACE
// FastLED "100-lines-of-code" demo reel, showing just a few
// of the kinds of animation patterns you can quickly and easily
// compose using FastLED.
//
// This example also shows one easy way to define multiple
// animations patterns and have them automatically rotate.
#include "FastLED.h"
#define DATA_PIN 16
#define CLK_PIN 17
#define LED_TYPE APA102
#define COLOR_ORDER BGR // RGB, BGR
#define NUM_LEDS 64
#define BRIGHTNESS 30
CRGB leds[NUM_LEDS];