forked from nanoframework/nanoFramework.IoT.Device
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Aht10.cs
27 lines (24 loc) · 775 Bytes
/
Aht10.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>
/// AHT10/15 temperature and humidity sensor binding.
/// </summary>
public class Aht10 : AhtBase
{
/// <summary>
/// Initialization command acc. to datasheet.
/// </summary>
private const byte Aht10InitCommand = 0b1110_0001;
/// <summary>
/// Initializes a new instance of the <see cref="Aht10"/> class.
/// </summary>
/// <param name="i2cDevice">I2C bus.</param>
public Aht10(I2cDevice i2cDevice)
: base(i2cDevice, Aht10InitCommand)
{
}
}
}