Skip to content

Instantly share code, notes, and snippets.

@infovore

infovore/blinken.rb

Created Aug 9, 2013
Embed
What would you like to do?
require 'pi_piper'
include PiPiper
pin = PiPiper::Pin.new(:pin => 17, :direction => :out)
pin.off
loop do
pin.on
sleep 1
pin.off
sleep 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment