Skip to content
Snippets Groups Projects
Select Git revision
  • 4fc607a1d77e1cf9e1fe1c037ad28d309c81113e
  • wip-bootstrap default
  • dualcore
  • ch3/leds
  • ch3/time
  • master
6 results

websocket_helper.py

Blame
  • button_led.py 180 B
    import utime
    from hwconfig import LED, BUTTON
    
    # Light LED when (and while) a BUTTON is pressed
    
    while 1:
        LED.value(BUTTON.value())
        # Don't burn CPU
        utime.sleep_ms(10)