Skip to content

Instantly share code, notes, and snippets.

View taylorlapeyre's full-sized avatar

Taylor Lapeyre taylorlapeyre

View GitHub Profile
int LED = 13; // the pin for the LED
int BUTTON = 7; // the input pin where the pushbutton is connected
int val = 0; // val will be used to store the state of the input pin
int delay_time = 1000;
void setup() {
pinMode(LED, OUTPUT); // tell Arduino LED is an output
pinMode(BUTTON, INPUT); // and BUTTON is an input
}
@taylorlapeyre
taylorlapeyre / Guardfile
Created December 12, 2012 01:07 — forked from yknd/Guardfile
guard 'rspec', :version => 2, :cli => "-c -fs" do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
watch(%r{^views/(.+)\.(slim|scss)$})
end