File tree 1 file changed +13
-6
lines changed
1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 1
1
from machine import UART , Pin
2
- import time
3
2
from esp8266 import ESP8266
3
+ import time , sys
4
+
5
+ print ("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" )
6
+ print ("RPi-Pico MicroPython Ver:" , sys .version )
7
+ print ("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" )
4
8
5
- esp01 = ESP8266 ()
6
- esp8266_at_ver = None
7
9
10
+ ## Create On-board Led object
8
11
led = Pin (25 ,Pin .OUT )
9
12
13
+ ## Create an ESP8266 Object
14
+ esp01 = ESP8266 ()
15
+ esp8266_at_ver = None
16
+
10
17
print ("StartUP" ,esp01 .startUP ())
11
18
#print("ReStart",esp01.reStart())
12
19
print ("StartUP" ,esp01 .startUP ())
16
23
'''
17
24
Print ESP8266 AT comand version and SDK details
18
25
'''
19
- esp8266_at_var = esp01 .getVersion ()
20
- if (esp8266_at_var != None ):
21
- print (esp8266_at_var )
26
+ esp8266_at_ver = esp01 .getVersion ()
27
+ if (esp8266_at_ver != None ):
28
+ print (esp8266_at_ver )
22
29
23
30
'''
24
31
set the current WiFi in SoftAP+STA
You can’t perform that action at this time.
0 commit comments