Skip to content

Instantly share code, notes, and snippets.

@mattintosh4
Created February 25, 2018 16:18
Show Gist options
  • Select an option

  • Save mattintosh4/195535d32cb778b6f3d936d503b19e2c to your computer and use it in GitHub Desktop.

Select an option

Save mattintosh4/195535d32cb778b6f3d936d503b19e2c to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
require 'pi_piper'
led = PiPiper::Pin.new :pin => 21, :direction => :out
loop do
p "LED ON"
led.on
sleep 1
p "LED OFF"
led.off
sleep 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment