Skip to content

Instantly share code, notes, and snippets.

View jasoncoon's full-sized avatar

Jason Coon jasoncoon

View GitHub Profile
@jasoncoon
jasoncoon / KC Multi Rotor RGB LED Wi-Fi Gate Instructions.md
Last active June 27, 2020 18:35
KC Multi Rotor RGB LED Wi-Fi Gate Instructions

KC Multi Rotor RGB LED Wi-Fi Gate Instructions

Powering on the gates.

Connect the gates to power via the micro USB port, using USB battery packs, wall adapters, etc. They should immediately light up with the last pattern/animation they were set to.

Controlling the gates via Wi-Fi:

  1. Connect the AP to power via the wall adapter.
  2. A short while after the AP is powered on, you should be able to see and connect to KCMR_GATES on a laptop, tablet, or phone.
@jasoncoon
jasoncoon / pyportal_tindie_order_tracker.py
Created March 3, 2019 20:59
Python code for a Tindie order tracker built with an Adafruit PyPortal
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
@jasoncoon
jasoncoon / fastled-esp32-test.ino
Last active February 15, 2018 03:28
FastLED ESP32 Test
#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);
@jasoncoon
jasoncoon / FastLED-HSV-Game.ino
Created April 24, 2017 21:31
FastLED HSV Game
#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 June 28, 2021 20:40
FastLED RGB & HSV Tutorial
#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 April 7, 2017 00:55
FastLED RGB Dials - Example project showing how to use Red, Green, and Blue to create color.
#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 April 7, 2017 00:54
FastLED HSV Dials - Example project showing how to use Hue, Saturation, and Value to create color.
#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
#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);
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,
#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