File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ Pixel test
3
3
4
4
Ensure your device works with this test:
5
5
6
- .. literalinclude :: ../examples/pixel_test .py
7
- :caption: examples/pixel_test .py
6
+ .. literalinclude :: ../examples/amg88xx_simpletest .py
7
+ :caption: examples/amg88xx_simpletest .py
8
8
:linenos:
Original file line number Diff line number Diff line change 1
1
import time
2
-
3
2
import busio
4
3
import board
5
-
6
4
import adafruit_amg88xx
7
5
8
- i2c_bus = busio .I2C (board .SCL , board .SDA )
9
-
10
- amg = adafruit_amg88xx .AMG88XX (i2c_bus )
6
+ i2c = busio .I2C (board .SCL , board .SDA )
7
+ amg = adafruit_amg88xx .AMG88XX (i2c )
11
8
12
9
while True :
13
10
for row in amg .pixels :
14
- #pad to 1 decimal place
11
+ # Pad to 1 decimal place
15
12
print (['{0:.1f}' .format (temp ) for temp in row ])
16
13
print ("" )
17
-
18
14
print ("\n " )
19
15
time .sleep (1 )
Original file line number Diff line number Diff line change
1
+ """This example is for Raspberry Pi only! It will not work on CircuitPython!"""
1
2
import os
2
3
import math
3
4
import time
You can’t perform that action at this time.
0 commit comments