SupportedMode Enum
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Mode bits for the Firmata protocol. These are used both for capability reporting as well as to set a mode
public enum SupportedMode
public class SupportedMode : IEquatable<Iot.Device.Arduino.SupportedMode>
type SupportedMode =
type SupportedMode = class
interface IEquatable<SupportedMode>
Public Enum SupportedMode
Public Class SupportedMode
Implements IEquatable(Of SupportedMode)
- Inheritance
-
SupportedMode
- Inheritance
-
SupportedMode
Name | Value | Description |
---|---|---|
DigitalInput | 0 | The pin supports digital input |
DigitalOutput | 1 | The pin supports digital output; |
AnalogInput | 2 | The pin supports analog input |
Pwm | 3 | The pin supports PWM |
Servo | 4 | The pin supports servo motor controls |
Shift | 5 | Unused |
I2c | 6 | The pin supports I2C data transfer |
OneWire | 7 | The pin supports one wire communication |
Stepper | 8 | The pin can drive a stepper motor |
Encoder | 9 | The pin has an encoder |
Serial | 10 | The pin can perform UART (TX or RX) |
InputPullup | 11 | The pin can be set to input-pullup. |
Spi | 12 | The pin can be used for SPI transfer (Clock, MOSI, MISO and default CS pin) For most Arduinos, MOSI=11, MISO=12 and Clock = 13. The default CS pin is 10. |
Sonar | 13 | HC-SR04 |
Tone | 14 | Arduino tone library |
Dht | 15 | DHT type sensors |
Product | Versions |
---|---|
.NET IoT Libraries | 1.4.0, 1.5.0 |