/ examples / amg88xx_simpletest.py
amg88xx_simpletest.py
 1  import time
 2  import busio
 3  import board
 4  import adafruit_amg88xx
 5  
 6  i2c = busio.I2C(board.SCL, board.SDA)
 7  amg = adafruit_amg88xx.AMG88XX(i2c)
 8  
 9  while True:
10      for row in amg.pixels:
11          # Pad to 1 decimal place
12          print(["{0:.1f}".format(temp) for temp in row])
13          print("")
14      print("\n")
15      time.sleep(1)