17 lines
262 B
Python
17 lines
262 B
Python
from wifi import Wifi
|
|
from led import LED
|
|
|
|
try:
|
|
LED_PIN = 2
|
|
SSID = "Proximus-Home-AA68_EXT"
|
|
PASSWORD = "wcsp565un2bbw"
|
|
|
|
led = LED(LED_PIN)
|
|
led.off()
|
|
|
|
wifi = Wifi(SSID, PASSWORD)
|
|
wifi.connect()
|
|
|
|
led.on()
|
|
except Exception as e:
|
|
print("Unable to start", e) |