Added esp32-wifi
This commit is contained in:
17
esp32-wifi/main.py
Normal file
17
esp32-wifi/main.py
Normal file
@@ -0,0 +1,17 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user