Pixel test
Ensure your device works with this test:
examples/amg88xx_simpletest.py
1# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
2# SPDX-License-Identifier: MIT
3
4import time
5
6import board
7import busio
8
9import adafruit_amg88xx
10
11i2c = busio.I2C(board.SCL, board.SDA)
12amg = adafruit_amg88xx.AMG88XX(i2c)
13
14while True:
15 for row in amg.pixels:
16 # Pad to 1 decimal place
17 print([f"{temp:.1f}" for temp in row])
18 print("")
19 print("\n")
20 time.sleep(1)