Nol.A SDK Library
26.11.2
For IoT System Software Development
Toggle main menu visibility
Loading...
Searching...
No Matches
feather-m0/AMG88xx/main.cpp
#include <
cox.h
>
#include <
dev/Adafruit_AMG88xx.hpp
>
Adafruit_AMG88xx
amg(
Wire
);
void
setup() {
Serial2
.begin(115200);
Wire
.begin();
amg.begin();
static
Timer
timerSense;
timerSense.
onFired
([](
void
*) {
float
pixels[
AMG88xx_PIXEL_ARRAY_SIZE
];
amg.readPixels(pixels);
Serial2
.print(
"["
);
for
(
int
i = 1; i <=
AMG88xx_PIXEL_ARRAY_SIZE
; i++){
Serial2
.print(pixels[i-1]);
Serial2
.print(
", "
);
if
( i%8 == 0 )
Serial2
.println();
}
Serial2
.println(
"]"
);
Serial2
.println();
},
nullptr
);
timerSense.
startPeriodic
(100);
}
Adafruit_AMG88xx.hpp
Public driver declarations and configuration constants.
Adafruit_AMG88xx
Class that stores state and functions for interacting with AMG88xx IR sensor chips.
Definition
Adafruit_AMG88xx.hpp:121
Timer
Timer는 일정 시간 이후에 1회 실행될 작업, 매 일정 시간마다 실행될 작업 등을 위한 기능입니다.
Definition
Timer.hpp:61
Timer::startPeriodic
bool startPeriodic(uint32_t millis, bool interrupt=false)
작업함수를 매 millis 밀리초 주기로 반복하여 실행합니다.
Timer::onFired
void onFired(void(*func)(void *), void *args=nullptr)
타이머 만료시 실행시킬 작업함수를 지정합니다.
cox.h
API and definitions.
Serial2
SerialPort & Serial2
Wire
TwoWire & Wire
AMG88xx_PIXEL_ARRAY_SIZE
#define AMG88xx_PIXEL_ARRAY_SIZE
Number of pixels in the 8 by 8 thermal array.
Definition
Adafruit_AMG88xx.hpp:110
Generated on
for Nol.A SDK Library by
1.17.0