Skip to content

Commit 8993519

Browse files
committed
lint
1 parent ba6f01e commit 8993519

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

examples/esp32spi_aio_post.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
wifi = adafruit_esp32spi_wifimanager.ESPSPI_WiFiManager(esp, secrets, board.NEOPIXEL)
2424

2525
counter = 0
26+
2627
while True:
2728
try:
2829
print("Posting data...", end='')
@@ -31,7 +32,8 @@
3132
payload = {'value':data}
3233
response = wifi.post(
3334
"https://io.adafruit.com/api/v2/"+secrets['aio_username']+"/feeds/"+feed+"/data",
34-
json=payload,headers={bytes("X-AIO-KEY","utf-8"):bytes(secrets['aio_key'],"utf-8")})
35+
json=payload,
36+
headers={bytes("X-AIO-KEY", "utf-8"):bytes(secrets['aio_key'], "utf-8")})
3537
print(response.json())
3638
response.close()
3739
counter = counter + 1

examples/esp32spi_cheerlights.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
print("Fetching json from", DATA_SOURCE)
4141
response = wifi.get(DATA_SOURCE)
4242
print(response.json())
43-
value=response.json()
43+
value = response.json()
4444
for key in DATA_LOCATION:
4545
value = value[key]
4646
print(value)
@@ -53,7 +53,7 @@
5353
if not value:
5454
continue
5555
if last_value != value:
56-
color = int(value[1:],16)
56+
color = int(value[1:], 16)
5757
red = color >> 16 & 0xFF
5858
green = color >> 8 & 0xFF
5959
blue = color& 0xFF

examples/esp32spi_localtime.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import board
33
import busio
44
from digitalio import DigitalInOut
5-
import microcontroller
65
from adafruit_esp32spi import adafruit_esp32spi
76
from adafruit_esp32spi import adafruit_esp32spi_wifimanager
87
import rtc

0 commit comments

Comments
 (0)