ikostan/pico

View on GitHub
wokwi/wokwi_pico_w/main.py

Summary

Maintainability
A
0 mins
Test Coverage
"""
WOKWI testing library for Pi Pico W
"""
 
import time
Unable to import 'machine'
from machine import Pin
 
time.sleep(0.25) # Wait for USB to become ready
Constant name `led` doesn't conform to UPPER_CASE naming style
led = Pin(5, Pin.OUT)
 
if __name__ == '__main__':
while True:
led.toggle()
time.sleep(0.5)
print("Hello, Pi Pico!")