Table of Contents

Method ReadEnablePowerAsync

Namespace
Harp.LedArray
Assembly
Harp.LedArray.dll

ReadEnablePowerAsync(CancellationToken)

Asynchronously reads the contents of the EnablePower register.

public Task<LedState> ReadEnablePowerAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A CancellationToken which can be used to cancel the operation.

Returns

Task<LedState>

A task that represents the asynchronous read operation. The Result property contains the register payload.