Created
March 6, 2018 03:55
-
-
Save igaiga/09b8185da181d3d3c34e97221c03d1bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'smalrubot' | |
board = Smalrubot::Board.new(Smalrubot::TxRx::Serial.new) | |
100.times do | |
p board.analog_read(0) | |
sleep 1 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment