Skip to content

Commit 4d5f884

Browse files
committed
fix pylint
1 parent bfdac54 commit 4d5f884

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

examples/gpio/esp32spi_gpio.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff 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
5636
M4_D_W_PIN = DigitalInOut(board.A1) # digital write to ESP_D_R_PIN
5737
M4_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
10880
m4_d_w_val = False
10981
esp_d_w_val = False

0 commit comments

Comments
 (0)