Skip to content

Commit 4459bd0

Browse files
committed
linted
1 parent b55e60d commit 4459bd0

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

examples/espatcontrol_bitcoinprice.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,30 @@
11
import time
2+
import gc
23
import board
34
import busio
4-
from digitalio import DigitalInOut, Direction, Pull
5-
from adafruit_espatcommands import adafruit_espatcommands
5+
from digitalio import DigitalInOut
6+
import adafruit_espatcontrol
67
import ujson
78
from adafruit_ht16k33 import segments
8-
import gc
99

1010

11-
MY_SSID = "adafruit"
12-
MY_PASS = "password"
11+
MY_SSID = "ssidname"
12+
MY_PASS = "thepassword"
1313

14-
#URL = "http://wifitest.adafruit.com/testwifi/index.html"
1514
URL = "http://api.coindesk.com/v1/bpi/currentprice.json"
1615

1716
uart = busio.UART(board.TX, board.RX, baudrate=115200, timeout=0.1)
1817
resetpin = DigitalInOut(board.D5)
1918

2019
# Create the I2C interface.
2120
i2c = busio.I2C(board.SCL, board.SDA)
21+
# Attach a 7 segment display and display -'s so we know its not live yet
2222
display = segments.Seg7x4(i2c)
2323
display.print('----')
2424

2525
print("Get bitcoin price online")
26-
print("Free memory:", gc.mem_free() / 1024)
2726

28-
esp = adafruit_espatcommands.espatcommands(uart, 115200, reset_pin = resetpin, debug=True)
27+
esp = adafruit_espatcontrol.ESP_ATcontrol(uart, 115200, reset_pin=resetpin, debug=True)
2928
print("Connected to AT software version", esp.get_version())
3029

3130
while True:

0 commit comments

Comments
 (0)