Skip to content

Instantly share code, notes, and snippets.

View sbchisholm's full-sized avatar

Stephen Chisholm sbchisholm

View GitHub Profile
/* ---------------------------------------------------------
* | Arduino Experimentation Kit Example Code |
* | CIRC-05 .: 8 More LEDs :. (74HC595 Shift Register) |
* ---------------------------------------------------------
*
* We have already controlled 8 LEDs however this does it in a slightly
* different manner. Rather than using 8 pins we will use just three
* and an additional chip.
*
*
@sbchisholm
sbchisholm / .vimrc
Last active December 14, 2015 01:29
vimrc
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/Vundle.vim'
int ledPins[] = {2,3,4,5,6,7,8,9};
int ledCount = 8;
void setup() {
for (int i = 0; i < ledCount; i++)
pinMode(ledPins[i], OUTPUT);
}
void loop() {
oneAfterAnotherNoLoop();