Edit

Share via


SupportedMode Enum

Definition

Mode bits for the Firmata protocol. These are used both for capability reporting as well as to set a mode

C#
public enum SupportedMode
C#
public class SupportedMode : IEquatable<Iot.Device.Arduino.SupportedMode>
Inheritance
SupportedMode
Inheritance
SupportedMode

Fields

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

Applies to

Product Versions
.NET IoT Libraries 1.4.0, 1.5.0