Skip to content

Instantly share code, notes, and snippets.

Jason Coon jasoncoon

Block or report user

Report or block jasoncoon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jasoncoon
jasoncoon / pyportal_tindie_order_tracker.py
Created Mar 3, 2019
Python code for a Tindie order tracker built with an Adafruit PyPortal
View pyportal_tindie_order_tracker.py
import time
import board
from adafruit_pyportal import PyPortal
# Get wifi details and more from a secrets.py file
try:
from secrets import secrets
except ImportError:
print("WiFi secrets are kept in secrets.py, please add them there!")
raise
View fastled-esp32-test.ino
#include "FastLED.h"
#define DATA_PIN 18
#define NUM_LEDS 14
CRGB leds[NUM_LEDS];
uint8_t gHue = 0;
void setup() {
pinMode(DATA_PIN, OUTPUT);
View FastLED-HSV-Game.ino
#include <Bounce.h>
#include <FastLED.h>
// How many leds in your strip?
#define NUM_LEDS 8
// Data pin for the LEDs
#define DATA_PIN 17
// Potentiometer pins
@jasoncoon
jasoncoon / FastLED-RGB-HSV-Tutorial.ino
Last active Jul 2, 2019
FastLED RGB & HSV Tutorial
View FastLED-RGB-HSV-Tutorial.ino
#include "FastLED.h"
// How many leds in your strip?
#define NUM_LEDS 8
// Data pin for the LEDs
#define DATA_PIN 17
// Potentiometer pins
#define POT_0_PIN A0
@jasoncoon
jasoncoon / FastLED-RGB-Dials.ino
Created Apr 7, 2017
FastLED RGB Dials - Example project showing how to use Red, Green, and Blue to create color.
View FastLED-RGB-Dials.ino
#include "FastLED.h"
// How many leds in your strip?
#define NUM_LEDS 8
#define DATA_PIN 0
#define RED_PIN A7
#define GREEN_PIN A8
#define BLUE_PIN A9
@jasoncoon
jasoncoon / FastLED-HSV-Dials.ino
Created Apr 7, 2017
FastLED HSV Dials - Example project showing how to use Hue, Saturation, and Value to create color.
View FastLED-HSV-Dials.ino
#include "FastLED.h"
// How many leds in your strip?
#define NUM_LEDS 12
#define DATA_PIN 0
#define HUE_PIN A4
#define SAT_PIN A5
#define VAL_PIN A6
View FastLED-Slow-Fade.ino
#include "FastLED.h"
#define NUM_LEDS 60
#define DATA_PIN 3
CRGB leds[NUM_LEDS];
uint8_t hue = 0;
void setup() {
FastLED.addLeds<WS2812B, DATA_PIN, RGB>(leds, NUM_LEDS);
View FastLED build errors with Particle Libary Manager
Including:
src\XYMatrix.ino
project.properties
attempting to flash firmware to your device flaming_turtle_narwhal
Flash device failed.
In file included from /src/XYMatrix.cpp:10:0:
lib/MyFastLED/src/MyFastLED.h:17:21: note: #pragma message: FastLED version 3.001.005
# pragma message "FastLED version 3.001.005"
^
In file included from lib/MyFastLED/src/controller.h:9:0,
View fastled-election-2016.ino
#include <FastLED.h>
FASTLED_USING_NAMESPACE
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <ArduinoJson.h>
#define DATA_PIN D7
#define LED_TYPE WS2812B
#define COLOR_ORDER GRB
@jasoncoon
jasoncoon / FastLED-Sunrise.ino
Created Sep 15, 2016
Simple FastLED "sunrise" example that fades from black to red, orange, yellow, and white.
View FastLED-Sunrise.ino
#include "FastLED.h"
// How many leds in your strip?
#define NUM_LEDS 60
// For led chips like Neopixels, which have a data line, ground, and power, you just
// need to define DATA_PIN. For led chipsets that are SPI based (four wires - data, clock,
// ground, and power), like the LPD8806 define both DATA_PIN and CLOCK_PIN
#define DATA_PIN 3
#define CLOCK_PIN 13
You can’t perform that action at this time.