-
-
Notifications
You must be signed in to change notification settings - Fork 114
/
Copy pathPcf8574.cs
29 lines (27 loc) · 1.09 KB
/
Pcf8574.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
28
29
// 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.Gpio;
using System.Device.I2c;
namespace Iot.Device.Pcx857x
{
/// <summary>
/// Remote 8-bit I/O expander for I2C-bus with interrupt.
/// </summary>
public class Pcf8574 : Pcx8574
{
/// <summary>
/// Initializes a new instance of the Pca8574 device.
/// </summary>
/// <param name="device">The I2C device.</param>
/// <param name="interrupt">The interrupt pin number, if present.</param>
/// <param name="gpioController">
/// The GPIO controller for the <paramref name="interrupt"/>.
/// If not specified, the default controller will be used.
/// </param>
/// <param name="shouldDispose">True to dispose the Gpio Controller</param>
public Pcf8574(I2cDevice device, int interrupt = -1, GpioController gpioController = null, bool shouldDispose = true)
: base(device, interrupt, gpioController, shouldDispose)
{
}
}
}