forked from nanoframework/nanoFramework.IoT.Device
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Aht20.cs
27 lines (24 loc) · 772 Bytes
/
Aht20.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Device.I2c;
namespace Iot.Device.Ahtxx
{
/// <summary>
/// AHT20 temperature and humidity sensor binding.
/// </summary>
public class Aht20 : AhtBase
{
/// <summary>
/// Initialization command acc. to datasheet.
/// </summary>
private const byte Aht20InitCommand = 0b1011_1110;
/// <summary>
/// Initializes a new instance of the <see cref="Aht20"/> class.
/// </summary>
/// <param name="i2cDevice">I2C bus.</param>
public Aht20(I2cDevice i2cDevice)
: base(i2cDevice, Aht20InitCommand)
{
}
}
}