Commit 8e7cc40f authored by Matias Richart's avatar Matias Richart
Browse files

Agrego materiales

parent 4295dd10
--Initialize pin
led_pin = pio.GPIO17
switch_pin = pio.GPIO0
pio.pin.setdir(pio.OUTPUT, led_pin)
pio.pin.setdir(pio.INPUT, switch_pin)
while true do
--Get switch state and control led state
switch_state = pio.pin.getval(switch_pin)
pio.pin.setval(switch_state, led_pin)
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment