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):
32
32
esp .set_pin_mode (dout , 0x1 )
33
33
34
34
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
-
55
35
# M4 R/W Pin Assignments
56
36
M4_D_W_PIN = DigitalInOut (board .A1 ) # digital write to ESP_D_R_PIN
57
37
M4_D_W_PIN .direction = Direction .OUTPUT
@@ -96,14 +76,6 @@ def esp_status_text(n):
96
76
)
97
77
)
98
78
99
- print (
100
- "ESP32 Status: " ,
101
- esp .status ,
102
- esp_status_text (esp .status ),
103
- "Connected?" ,
104
- esp .is_connected ,
105
- )
106
-
107
79
# initial digital write values
108
80
m4_d_w_val = False
109
81
esp_d_w_val = False
You can’t perform that action at this time.
0 commit comments