Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # List all gems that are required.
- require 'rubygems'
- require 'bundler/setup'
- require 'dino'
- require 'pubnub'
- # Setup the hardware with their pins specified.
- board = Dino::Board.new(Dino::TxRx::Serial.new)
- button = Dino::Components::Button.new(pin: 'A0', board: board)
- led = Dino::Components::Led.new(pin: 1, board: board)
- # Initially set the led off.
- led.send(:off)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement