Skip to content

Instantly share code, notes, and snippets.

/*
http://arduino.cc/en/Tutorial/AnalogInput
*/
#define SENSOR_PIN A0 // select the input pin for the potentiometer
#define NUM_PINS 8
#define START_PIN 1
int pin_interval;
@branliu0
branliu0 / ShfitRegister.ino
Created August 1, 2012 18:40
Example Code for Shift Register
// Pin Definitions
// The 74HC595 uses a serial communication link which has three pins
#define PIN_DATA 2
#define PIN_CLOCK 3
#define PIN_LATCH 4
int data = 2;
int clock = 3;
int latch = 4;
void setup() {
@branliu0
branliu0 / gist:2692610
Created May 14, 2012 08:02
Brandon Liu's .vimrc
set nocompatible
behave xterm
filetype plugin indent on
syntax on
source $HOME/.vim/vimrc/filetypes.vim
source $HOME/.vim/vimrc/looks.vim
source $HOME/.vim/vimrc/mappings.vim
source $HOME/.vim/vimrc/misc.vim
source $HOME/.vim/vimrc/plugin_configs.vim