Sha256: 0bc889575dc30657e5db057eac2efcd8026be4dab1220274139ab246895c7152
Contents?: true
Size: 214 Bytes
Versions: 2
Compression:
Stored size: 214 Bytes
Contents
require 'bundler/setup' require 'wiringpi2' INPUT = 0 PUD_UP = 2 pin = 0 io = WiringPi::GPIO.new io.pin_mode(pin,INPUT) io.pullUpDnControl(pin, PUD_UP) while (true) puts io.digital_read(pin) sleep(0.5) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
frankenpins-0.3.0 | scratch/simple.rb |
frankenpins-0.2.1 | scratch/simple.rb |