forked from mlinnen/Netduino-Emulator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInputGpioEventArgs.cs
More file actions
41 lines (37 loc) · 803 Bytes
/
InputGpioEventArgs.cs
File metadata and controls
41 lines (37 loc) · 803 Bytes
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
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SPOT.Emulator.Gpio;
namespace Netduino.Core
{
/// <summary>
/// A simple DTO that represents the state of an input pin on the netduino
/// </summary>
public class InputGpioEventArgs
{
private int _pin;
private bool _edge;
public InputGpioEventArgs(int pin, bool edge)
{
_pin = pin;
_edge = edge;
}
/// <summary>
/// What pin this event is for
/// </summary>
public int Pin
{
get { return _pin; }
set { _pin = value; }
}
/// <summary>
/// What state the pin transitioned to
/// </summary>
public bool Edge
{
get { return _edge; }
set { _edge = value; }
}
}
}