-
Notifications
You must be signed in to change notification settings - Fork 586
/
FirmataCommand.cs
62 lines (52 loc) · 1.62 KB
/
FirmataCommand.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Iot.Device.Arduino
{
/// <summary>
/// Primary firmata commands
/// </summary>
internal enum FirmataCommand : byte
{
/// <summary>
/// Digital pins have changed
/// </summary>
DIGITAL_MESSAGE = 144, // 0x00000090
/// <summary>
/// Request a report on a changing analog pin
/// </summary>
REPORT_ANALOG_PIN = 192, // 0x000000C0
/// <summary>
/// Request a report on changing digital ports
/// Note that digital pins are grouped to 8-byte ports
/// </summary>
REPORT_DIGITAL_PIN = 208, // 0x000000D0
/// <summary>
/// Analog pin state
/// </summary>
ANALOG_MESSAGE = 224, // 0x000000E0
/// <summary>
/// Start an extended message
/// </summary>
START_SYSEX = 240, // 0x000000F0
/// <summary>
/// Set the input/output mode of a pin
/// </summary>
SET_PIN_MODE = 244, // 0x000000F4
/// <summary>
/// Set the value of a digital pin
/// </summary>
SET_DIGITAL_VALUE = 0xF5,
/// <summary>
/// End an extended message
/// </summary>
END_SYSEX = 247, // 0x000000F7
/// <summary>
/// Protocol version request/reply
/// </summary>
PROTOCOL_VERSION = 249, // 0x000000F9
/// <summary>
/// System was reset
/// </summary>
SYSTEM_RESET = 255 // 0x000000FF
}
}