Created
June 28, 2018 15:01
-
-
Save ivan-leschinsky/f6649ba1e8799895b7bf23404ec43203 to your computer and use it in GitHub Desktop.
digispark little wire sample code
This file contains hidden or 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
| wire = LittleWire.connect | |
| wire.pin_mode :pin1, :out | |
| loop do | |
| wire.digital_write :pin1, :vcc | |
| sleep 0.5 | |
| wire.digital_write :pin1, :gnd | |
| sleep 0.5 | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment