Skip to content

Instantly share code, notes, and snippets.

@niko-h
niko-h / vu3.ino
Created January 12, 2015 13:55
Small program for Arduino + 32 RGB-LED-Strip
#define DEBUG // Uncomment for Serial Debug Output
#include "HL1606stripPWM.h"
// This library uses Timer 2 for PWM counting and 3 * numLEDs bytes of RAM
// and Arduino pins 11 & 13 (Mega, 51 & 52)
// First value passed is how many LEDs are in your HL1606 strand
// fewer LEDs means less work
// This library uses hardware SPI so pins 11 and 13 are used
/***
* License
*
* "THE WURZEL LICENSE" (Revision 4): ed@bombenlabor.de created this software.
* You can do with it whatever you want under the following conditions:
* This licence must be included with the software and refer to the author.
* The software must only be used for non-military uses and only in compliance
* with human rights. All parts of this material must remain open source.
* If we meet some day, and you think this stuff is worth it,
* you can buy me a beer in return. Niko
@niko-h
niko-h / HTML Base
Created June 20, 2013 11:07
HTML: Base
<!doctype html>
<html>
<head>
<meta charset=utf-8>
<meta name=description content="">
<meta name=viewport content="width=device-width, initial-scale=1">
<title>Untitled</title>
<link rel=stylesheet href="css/style.css">
<link rel=author href="humans.txt">
</head>
<style>
span.tooltip {
display: none;
z-index: 1000;
position: absolute;
text-decoration: none;
color: #fff;
padding: 0 7px 0 9px;
background: #777;
border: none;
/**
* Author: Edward Vayne
*
* Modular Midi-Controller for Arduino
*/
#include <MIDI.h>
// Variables:
const int switches[] = {4, 5, 6, 7, 8, 9, 10}; // pins for buttons