Skip to content

Instantly share code, notes, and snippets.

@nishantmodak
Last active December 18, 2015 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nishantmodak/5821971 to your computer and use it in GitHub Desktop.
Save nishantmodak/5821971 to your computer and use it in GitHub Desktop.
Dino LED Blink
require 'dino'
board=Dino::Board.new(Dino::TxRx::Serial.new)
led = Dino::Components::Led.new(pin: 13, board: board)
[:on, :off].cycle do |switch|
led.send(switch)
sleep 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment