Skip to content

Instantly share code, notes, and snippets.

@ivan-leschinsky
Created June 28, 2018 15:01
Show Gist options
  • Select an option

  • Save ivan-leschinsky/f6649ba1e8799895b7bf23404ec43203 to your computer and use it in GitHub Desktop.

Select an option

Save ivan-leschinsky/f6649ba1e8799895b7bf23404ec43203 to your computer and use it in GitHub Desktop.
digispark little wire sample code
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