Skip to main content

Meadow.Foundation.Sensors.Camera.Amg8833

Amg8833
StatusStatus badge: working
Source codeGitHub
Datasheet(s)GitHub
NuGet packageNuGet Gallery for Meadow.Foundation.Sensors.Camera.Amg8833

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");
}
}

Sample project(s) available on GitHub