Skip to content

Instantly share code, notes, and snippets.

View nerdess's full-sized avatar

Sissi nerdess

View GitHub Profile
@gorenje
gorenje / xmas.ino
Last active December 10, 2015 07:28
Ardunio Xmas Tree
// -*- c -*-
#define TO_INT(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9) \
(256*arg1) + (128*arg2) + (64*arg3) + (32*arg4) + (16*arg5) + \
( 8*arg6) + ( 4*arg7) + ( 2*arg8) + ( 1*arg9)
const int lookup[] = { 1, 2, 4, 8, 16, 32, 64, 128, 256 };
const int SwitchPin = 13;
const int SwitchPin2 = 12;