This file contains hidden or 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
# fake_vectorscope2_lissajous.py -- a little fakey vectorscope in CircuitPython for 2023HackadaySupercon | |
# 21 Oct 2023 - @todbot / Tod Kurt# | |
# video demo: https://mastodon.social/@todbot/111279891762130663 | |
import time, math, random | |
import board, busio | |
import displayio, vectorio | |
import gc9a01 | |
displayio.release_displays() |
This file contains hidden or 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
// Polar basics demo for the | |
// FastLED Podcast #2 | |
// https://www.youtube.com/watch?v=KKjFRZFBUrQ | |
// | |
// VO.1 preview version | |
// by Stefan Petrick 2023 | |
// This code is licenced under a | |
// Creative Commons Attribution | |
// License CC BY-NC 3.0 |
This file contains hidden or 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
bl_info = { | |
"name": "Polar Zonohedron", | |
"author": "Rob Bell, Garrett Mace", | |
"version": (1, 0), | |
"blender": (2, 80, 0), | |
"location": "View3D > Add > Mesh > Polar Zonohedron", | |
"description": "Adds a new Polar Zonohedron", | |
"warning": "", | |
"wiki_url": "", | |
"category": "Add Mesh", |
This file contains hidden or 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
// | |
// "Pacifica" | |
// Gentle, blue-green ocean waves. | |
// December 2019, Mark Kriegsman and Mary Corey March. | |
// For Dan. | |
// | |
#define FASTLED_ALLOW_INTERRUPTS 0 | |
#include <FastLED.h> | |
FASTLED_USING_NAMESPACE |
This file contains hidden or 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
/* | |
FastLED Fire 2018 by Stefan Petrick | |
The visual effect highly depends on the framerate. | |
In the Youtube video it runs at arround 70 fps. | |
https://www.youtube.com/watch?v=SWMu-a9pbyk | |
The heatmap movement is independend from the framerate. | |
The actual scaling operation is not. |
This file contains hidden or 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
void noise_noise1() { | |
CRGBPalette16 Pal( pit ); | |
/* here is how the palette looks like: | |
DEFINE_GRADIENT_PALETTE( pit ) { | |
0, 3, 3, 3, | |
64, 13, 13, 255, // blue | |
128, 3, 3, 3, | |
192, 255, 130, 3, // orange |
This file contains hidden or 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
// as showed on youtube | |
void noise_audio2() { | |
read_audio(); | |
CRGBPalette16 Pal( pit3 ); // the red one | |
y[0] += (bands[4] - 10) * 4; | |
scale_x[0] = 10000 - (bands[0] * 40); | |
scale_y[0] = scale_x[0]; | |
byte layer = 0; | |
for (uint8_t i = 0; i < Width; i++) { | |
uint32_t ioffset = scale_x[layer] * (i - CentreX); |
This file contains hidden or 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 DATA_PIN 3 | |
#define CLOCK_PIN 2 | |
#define DATA_PIN_2 7 | |
#define CLOCK_PIN_2 6 | |
#define CHIPSET APA102 | |
#define NUM_LEDS 144 | |
#define BRIGHTNESS 100 |
This file contains hidden or 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" | |
// 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: |
This file contains hidden or 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 NUM_LEDS 255 | |
#define DATA_PIN SPI_DATA | |
#define CLOCK_PIN SPI_CLOCK | |
// Define the array of leds | |
CRGB leds[NUM_LEDS]; |
NewerOlder