Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
If wifi.Connect2("xxx","yyy") Then 'change to your network SSID (use Connect2 if a password is required).
Log("Connected to wireless network.")
Else
Log("Failed to connect.")
Return
End If
ScanNetworks
pp.Initialize(p2.D0, pp.MODE_OUTPUT)
pp.DigitalWrite(True)
timer1.Initialize("timer1_Tick", 50)
timer1.Enabled = True
End Sub
Sub Timer1_Tick
pp.DigitalWrite(Not(pp.DigitalRead))
End Sub