This file contains 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
/* --------------------------------------------------------- | |
* | 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. | |
* | |
* |
This file contains 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
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim/ | |
call vundle#rc() | |
" let Vundle manage Vundle | |
" required! | |
Bundle 'gmarik/Vundle.vim' |
This file contains 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
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(); |
NewerOlder