Skip to content

Enum SimpleDeviceFeatureSet

Namespace: Belay.Core
Assembly: Belay.Core.dll

Hardware features that can be detected on MicroPython devices.

csharp
[Flags]
public enum SimpleDeviceFeatureSet

Fields

ADC = 2

Analog to Digital Converter (machine.ADC).

Audio = 16384

Audio capabilities (machine.DAC, etc.).

Bluetooth = 1024

Bluetooth communication (bluetooth module).

CryptoAccel = 2048

Cryptographic acceleration (hashlib, etc.).

Display = 8192

Display capabilities (framebuf, etc.).

FileSystem = 256

File system operations (os module).

GPIO = 1

General Purpose I/O pins (machine.Pin).

I2C = 8

I2C communication interface (machine.I2C).

None = 0

No features detected or supported.

PWM = 4

Pulse Width Modulation (machine.PWM).

RTC = 64

Real-time clock (machine.RTC).

SPI = 16

SPI communication interface (machine.SPI).

Threading = 128

Multi-threading support (_thread module).

Timer = 32

Hardware timers (machine.Timer).

TouchSensor = 4096

Touch sensor capabilities.

WiFi = 512

WiFi networking capabilities (network module).

Remarks

This enumeration represents the hardware capabilities that can be detected through import testing on MicroPython devices. The detection is performed in a single batched operation for optimal performance.

Released under the Apache License 2.0.