Skip to content

Commit e14c153

Browse files
committed
fix typos, remove unneeded imports
1 parent 34f35ab commit e14c153

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ import adafruit_amg88xx
1717
The way to create an I2C object depends on the board you are using. For boards with labeled SCL and SDA pins, you can:
1818

1919
```
20-
from board import *
20+
import board
2121
```
2222

2323
You can also use pins defined by the onboard microcontroller through the microcontroller.pin module.
2424

2525
Now, to initialize the I2C bus:
2626

2727
```
28-
myI2C = busio.I2C(SCL, SDA)
28+
myI2C = busio.I2C(board.SCL, board.SDA)
2929
```
3030

3131
Once you have created the I2C interface object, you can use it to instantiate the AMG88xx object
@@ -45,6 +45,6 @@ amg = adafruit_amg88xx.Adafruit_AMG88xx(myI2C, addr=0x68)
4545
Pixels can be then be read by doing:
4646

4747
```
48-
value = a.readPixels()
48+
value = amg.readPixels()
4949
print(value)
5050
```

adafruit_amg88xx.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ class is inherited by the chip-specific subclasses.
4242
"""
4343

4444
from adafruit_bus_device.i2c_device import I2CDevice
45-
from adafruit_register import i2c_bit
46-
from adafruit_register import i2c_bits
47-
from adafruit_register import i2c_bcd_alarm
48-
from adafruit_register import i2c_bcd_datetime
45+
from adafruit_register import i2c_bit, i2c_bints
4946

5047
"""
5148
# AMG88xx default address.

0 commit comments

Comments
 (0)