Advertisement
Guest User

Untitled

a guest
May 26th, 2015
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. # List all gems that are required.
  2. require 'rubygems'
  3. require 'bundler/setup'
  4. require 'dino'
  5. require 'pubnub'
  6.  
  7.  
  8. # Setup the hardware with their pins specified.
  9. board = Dino::Board.new(Dino::TxRx::Serial.new)
  10. button = Dino::Components::Button.new(pin: 'A0', board: board)
  11. led = Dino::Components::Led.new(pin: 1, board: board)
  12.  
  13.  
  14. # Initially set the led off.
  15. led.send(:off)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement