forked from nanoframework/nanoFramework.IoT.Device
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Pcx8574.cs
29 lines (26 loc) · 1.03 KB
/
Pcx8574.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>
/// Base class for 8 bit I/O expanders.
/// </summary>
public abstract class Pcx8574 : Pcx857x
{
/// <summary>
/// Constructs Pcx8574 instance
/// </summary>
/// <param name="device">I2C device</param>
/// <param name="interrupt">Interrupt pin</param>
/// <param name="gpioController"><see cref="GpioController"/> related with <paramref name="interrupt"/> pin</param>
/// <param name="shouldDispose">True to dispose the Gpio Controller</param>
public Pcx8574(I2cDevice device, int interrupt = -1, GpioController gpioController = null, bool shouldDispose = true)
: base(device, interrupt, gpioController, shouldDispose)
{
}
/// <inheritdoc/>
protected override int PinCount => 8;
}
}