import network
import ujson
from machine import Pin
from neopixel import NeoPixel
from time import sleep
# Edisson Sanchez - 201910130197
pixels = NeoPixel(Pin(21), 16)
pixels.fill((250,0,0))
pixels.write()
sleep(0.5)
pixels = NeoPixel(Pin(21), 16)
pixels.fill((0,0,250))
pixels.write()
sleep(0.5)
print("Conectandose a la RED", end="")
red = network.WLAN(network.STA_IF)
red.active(True)
red.connect("Wokwi-GUEST","")
while not red.isconnected():
sleep(0.5)
print("*", end="")
print("Conectado Exitosamente")
pixels.fill((0,250,0))
pixels.write()
sleep(0.5)