Skip to content

Instantly share code, notes, and snippets.

// Sound Reactive Light is a software that gets audio input from voice or a player
// and then blinks a strand of LED lights to the waveform. This is the host PC-side
// code written in Processing, intended for use with a USB-connected Arduino
// microcontroller running the accompanying LED streaming code. Requires one
// or more strands of Digital RGB LED Pixels (Adafruit product ID #322,
// specifically the newer WS2801-based type, strand of 25) and a 5 Volt power
// supply (such as Adafruit #276). You may need to adapt the code and the
// hardware arrangement for your specific display configuration.
// --------------------------------------------------------------------
# THIS SCRIPT USES THE LIBRARY AT:
# https://github.com/hzeller/rpi-rgb-led-matrix
# BE SURE TO CLONE IT AND READ THE README, as highlighted in the video :)
import os, time, threading, random
import feedparser
from PIL import Image, ImageFont, ImageDraw
from random import shuffle
@chubbyemu
chubbyemu / GeneticAlgorithm.cs
Last active January 28, 2020 22:28
Color Genetic Algorithm in C#
/*
* Genetic Color - Genetic Algorithm color example
* Copyright (C) 2013 chubbyemu and anonymous. All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
@chubbyemu
chubbyemu / GeneticAlgorithm.cpp
Last active October 29, 2020 10:05
Color Genetic Algorithm in C++
/*
* Genetic Color - Genetic Algorithm color example
* Copyright (C) 2014 chubbyemu and anonymous. All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright