Andy Lucky
/
AMG3x3
test amg3x3
main.cpp@0:72fe4e323c03, 2020-09-12 (annotated)
- Committer:
- lucky28
- Date:
- Sat Sep 12 14:49:48 2020 +0000
- Revision:
- 0:72fe4e323c03
- Child:
- 1:dff8f3f6e852
tes AMG8833
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lucky28 | 0:72fe4e323c03 | 1 | #include "mbed.h" |
lucky28 | 0:72fe4e323c03 | 2 | #include "AMG8833.h" |
lucky28 | 0:72fe4e323c03 | 3 | |
lucky28 | 0:72fe4e323c03 | 4 | Adafruit_AMG88xx amg(I2C_SDA, I2C_SCL); |
lucky28 | 0:72fe4e323c03 | 5 | |
lucky28 | 0:72fe4e323c03 | 6 | float pixels[AMG88xx_PIXEL_ARRAY_SIZE]; |
lucky28 | 0:72fe4e323c03 | 7 | |
lucky28 | 0:72fe4e323c03 | 8 | int main() { |
lucky28 | 0:72fe4e323c03 | 9 | wait(0.01); |
lucky28 | 0:72fe4e323c03 | 10 | |
lucky28 | 0:72fe4e323c03 | 11 | //read all the pixels |
lucky28 | 0:72fe4e323c03 | 12 | amg.readPixels(pixels); |
lucky28 | 0:72fe4e323c03 | 13 | |
lucky28 | 0:72fe4e323c03 | 14 | wait(0.10); |
lucky28 | 0:72fe4e323c03 | 15 | } |
lucky28 | 0:72fe4e323c03 | 16 | |
lucky28 | 0:72fe4e323c03 | 17 |