We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93b1771 commit 15f2a45Copy full SHA for 15f2a45
examples/esp32spi_simpletest.py
@@ -1,14 +1,20 @@
1
# SPDX-FileCopyrightText: 2019 ladyada for Adafruit Industries
2
# SPDX-License-Identifier: MIT
3
4
-from secrets import secrets
5
import board
6
import busio
7
from digitalio import DigitalInOut
8
import adafruit_esp32spi.adafruit_esp32spi_socket as socket
9
from adafruit_esp32spi import adafruit_esp32spi
10
import adafruit_requests as requests
11
+# Get wifi details and more from a secrets.py file
12
+try:
13
+ from secrets import secrets
14
+except ImportError:
15
+ print("WiFi secrets are kept in secrets.py, please add them there!")
16
+ raise
17
+
18
print("ESP32 SPI webclient test")
19
20
TEXT_URL = "http://wifitest.adafruit.com/testwifi/index.html"
0 commit comments