File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -32,26 +32,6 @@ def esp_init_pin_modes(din, dout):
3232 esp .set_pin_mode (dout , 0x1 )
3333
3434
35- def esp_status_text (n ):
36- text = "WL_UNDEFINED"
37- t = {
38- 0 : "WL_IDLE_STATUS" ,
39- 1 : "WL_NO_SSID_AVAIL" ,
40- 2 : "WL_SCAN_COMPLETED" ,
41- 3 : "WL_CONNECTED" ,
42- 4 : "WL_CONNECT_FAILED" ,
43- 5 : "WL_CONNECTION_LOST" ,
44- 6 : "WL_DISCONNECTED" ,
45- 7 : "WL_AP_LISTENING" ,
46- 8 : "WL_AP_CONNECTED" ,
47- 9 : "WL_AP_FAILED" ,
48- 10 : "WL_NO_SHIELD" ,
49- }
50- if n in t :
51- text = t [n ]
52- return text
53-
54-
5535# M4 R/W Pin Assignments
5636M4_D_W_PIN = DigitalInOut (board .A1 ) # digital write to ESP_D_R_PIN
5737M4_D_W_PIN .direction = Direction .OUTPUT
@@ -96,14 +76,6 @@ def esp_status_text(n):
9676 )
9777)
9878
99- print (
100- "ESP32 Status: " ,
101- esp .status ,
102- esp_status_text (esp .status ),
103- "Connected?" ,
104- esp .is_connected ,
105- )
106-
10779# initial digital write values
10880m4_d_w_val = False
10981esp_d_w_val = False
You can’t perform that action at this time.
0 commit comments