Esp8266 & Basic ? Why Basic ? Why not
Esp8266 & Basic ?
Si !!! Il vecchio e amato Basic per esp8266 !!! Provatelo !!!
“Basic is a language beloved by millions of people. Its what many of us started out with and what the old timers used on there commodore 64s. Its how Microsoft got started and one of the reasons for the explosive growth of computers in the 80s. Basic is a simple but powerull language that lets you do amazing things with out needing a degree in computer science. ESP8266 Basic has been largely inspired by the work of Carl Gundle and his product run basic avilable at http://runbasic.com”
Esp8266 Esp8266 Esp8266 Esp8266
Esempi
Esp8266 & Basic
Connect esp8266 to an Access Point:
ssid = ” ”
password = ” ”
print “SSID:”
textbox ssid
print “PASSWORD:”
textbox password
button “Connect”, [connect_to_ap]
wait
[connect_to_ap]
connect ssid, password
end
Turn the ESP8266 in to an access point:
ssid = ” ”
password = ” ”
print “SSID:”
textbox ssid
print “PASSWORD:”
textbox password
button “Make AP”, [create_ap]
wait
[create_ap]
ap ssid, password
end
WIFI Scanner
n = wifi.scan()
html “Number of network found = ”
html n
for x = 1 to n
html “<hr>”
html wifi.ssid(x)
html “,”
html wifi.rssi(x)
next x
Blink example (3.0 branch only)
pin = 0
blinkDelay = 1000
[top]
print “How many times to blink”
textbox noOfBlinks
print “Pin To use”
textbox pin
print “Blink Delay”
textbox blinkDelay
button “Blink Me Please”, [blinkMe]
button “Exit”, [getMeOutOfHere]
wait[blinkMe]
for x = 1 to noOfBlinks
io(po,pin,1)
delay blinkDelay
io(po,pin,0)
delay blinkDelay
next x
wait[getMeOutOfHere]
end
Esp8266 Forever !!!
Semplice da utilizzare