Meadow.Foundation.Sensors.Camera.Amg8833
Amg8833 | |
---|---|
Status | |
Source code | GitHub |
Datasheet(s) | GitHub |
NuGet package |
Code Example
Amg8833 camera;
public override Task Initialize()
{
Resolver.Log.Info("Initialize...");
var i2cBus = Device.CreateI2cBus(I2cBusSpeed.Fast);
camera = new Amg8833(i2cBus);
return Task.CompletedTask;
}
public override Task Run()
{
while (true)
{
var pixels = camera.ReadPixels();
//output the first 4 pixels
Resolver.Log.Info($"{pixels[0].Celsius:F1}°C, {pixels[1].Celsius:F1}°C, {pixels[2].Celsius:F1}°C, {pixels[3].Celsius:F1}°C");
}
}