Class NodeMCUWS2812USBDevice
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
Inheritance
Implements
Inherited Members
Namespace: RGB.NET.Devices.WS281X.NodeMCU
Assembly: RGB.NET.Devices.WS281X.dll
Syntax
public sealed class NodeMCUWS2812USBDevice : AbstractRGBDevice<NodeMCUWS2812USBDeviceInfo>, IRGBDevice<NodeMCUWS2812USBDeviceInfo>, ILedStripe, IRGBDevice, IEnumerable<Led>, IEnumerable, IPlaceable, IBindable, INotifyPropertyChanged, IDisposable
Constructors
| Edit this page View SourceNodeMCUWS2812USBDevice(NodeMCUWS2812USBDeviceInfo, NodeMCUWS2812USBUpdateQueue, int, int)
Initializes a new instance of the NodeMCUWS2812USBDevice class.
Declaration
public NodeMCUWS2812USBDevice(NodeMCUWS2812USBDeviceInfo deviceInfo, NodeMCUWS2812USBUpdateQueue updateQueue, int channel, int ledCount)
Parameters
Type | Name | Description |
---|---|---|
NodeMCUWS2812USBDeviceInfo | deviceInfo | The device info of this device. |
NodeMCUWS2812USBUpdateQueue | updateQueue | The update queue performing updates for this device. |
int | channel | The channel (as defined in the NodeMCU-sketch) this device is attached to. |
int | ledCount | The amount of leds on this device. |
Properties
| Edit this page View SourceChannel
Gets the channel (as defined in the NodeMCU-sketch) this device is attached to.
Declaration
public int Channel { get; }
Property Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceGetLedCustomData(LedId)
Gets the custom data associated with the specified LED.
Declaration
protected override object GetLedCustomData(LedId ledId)
Parameters
Type | Name | Description |
---|---|---|
LedId | ledId | The id of the led. |
Returns
Type | Description |
---|---|
object | The custom data for the specified LED. |
Overrides
GetLedsToUpdate(bool)
Gets an enumerable of LEDs that are changed and requires an update.
Declaration
protected override IEnumerable<Led> GetLedsToUpdate(bool flushLeds)
Parameters
Type | Name | Description |
---|---|---|
bool | flushLeds | Forces all LEDs to be treated as dirty. |
Returns
Type | Description |
---|---|
IEnumerable<Led> | The collection LEDs to update. |