[ Launch: Tributary inlet ] 8948529 by jwhendy
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" | |
// fast led constants | |
#define DATA_PIN 3 // change to your data pin | |
#define COLOR_ORDER GRB // if colors are mismatched; change this | |
#define NUM_LEDS 28 // change to the number of LEDs in your strip | |
// change WS2812B to match your type of LED, if different | |
// list of supported types is here: | |
// https://github.com/FastLED/FastLED/wiki/Overview |
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" | |
// must use fastLED 3.1: https://github.com/FastLED/FastLED/tree/FastLED3.1 | |
// fast led constants and initialize | |
#define DATA_PIN 9 | |
#define LED_TYPE WS2812B | |
#define COLOR_ORDER GRB | |
#define NUM_LEDS 48 | |
CRGB leds[NUM_LEDS]; |
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" | |
#define REDPIN 5 | |
#define GREENPIN 6 | |
#define BLUEPIN 3 | |
// blend() below can take two CRGB or CHSV colors | |
// CRGB color1 = CRGB(255, 0, 0); | |
// CRGB color2 = CRGB(0, 0, 255); |
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
/* | |
* Based on SpectrumAnalyzerBasic by Paul Stoffregen included in the Teensy Audio Library | |
* Modified by Jason Coon for the SmartMatrix Library | |
* Requires Teensyduino 1.20 or higher and the Teensy Audio Library | |
* Also requires FastLED 3.1 or higher | |
* If you are having trouble compiling, see | |
* the troubleshooting instructions here: | |
* https://github.com/pixelmatix/SmartMatrix/#external-libraries | |
* | |
* actual code found: |
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
#!/usr/bin/env python | |
import datetime | |
import os | |
import math | |
import numpy as np | |
import dash | |
import dash_core_components as dcc | |
import dash_html_components as html | |
import pandas as pd |
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
import dash | |
from dash.dependencies import Input, Output, Event, State | |
import dash_core_components as dcc | |
import dash_html_components as html | |
app = dash.Dash() | |
app.config.supress_callback_exceptions = True | |
app.css.append_css({'external_url': 'https://codepen.io/chriddyp/pen/bWLwgP.css'}) |
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
import cv2 | |
import subprocess | |
### for reference, the output of v4l2-ctl -d /dev/video1 -l (helpful for min/max/defaults) | |
# brightness (int) : min=0 max=255 step=1 default=128 value=128 | |
# contrast (int) : min=0 max=255 step=1 default=128 value=128 | |
# saturation (int) : min=0 max=255 step=1 default=128 value=128 | |
# white_balance_temperature_auto (bool) : default=1 value=1 | |
# gain (int) : min=0 max=255 step=1 default=0 value=0 | |
# power_line_frequency (menu) : min=0 max=2 default=2 value=2 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer