Skip to content

Instantly share code, notes, and snippets.

@stefania11
Created August 27, 2015 12:05
Show Gist options
  • Save stefania11/df95bfe94f30b1b19eba to your computer and use it in GitHub Desktop.
Save stefania11/df95bfe94f30b1b19eba to your computer and use it in GitHub Desktop.
# dino_sample.rb
require 'dino'
board = Dino::Board.new(Dino::TxRx.new)
led = Dino::Components::Led.new(pin: 13, board: board)
[:on, :off].cycle do |switch|
led.send(switch)
sleep 0.5
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment