Show / Hide Table of Contents

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
object
AbstractBindable
Placeable
AbstractRGBDevice<NodeMCUWS2812USBDeviceInfo>
NodeMCUWS2812USBDevice
Implements
IRGBDevice<NodeMCUWS2812USBDeviceInfo>
ILedStripe
IRGBDevice
IEnumerable<Led>
IEnumerable
IPlaceable
IBindable
INotifyPropertyChanged
IDisposable
Inherited Members
AbstractRGBDevice<NodeMCUWS2812USBDeviceInfo>.DeviceInfo
AbstractRGBDevice<NodeMCUWS2812USBDeviceInfo>.ColorCorrections
AbstractRGBDevice<NodeMCUWS2812USBDeviceInfo>.Update(bool)
AbstractRGBDevice<NodeMCUWS2812USBDeviceInfo>.Dispose()
AbstractRGBDevice<NodeMCUWS2812USBDeviceInfo>.AddLed(LedId, in Point, in Size, object)
AbstractRGBDevice<NodeMCUWS2812USBDeviceInfo>.RemoveLed(LedId)
AbstractRGBDevice<NodeMCUWS2812USBDeviceInfo>.GetEnumerator()
Placeable.Location
Placeable.Size
Placeable.Scale
Placeable.Rotation
Placeable.ActualLocation
Placeable.ActualSize
Placeable.Boundary
Placeable.LocationChanged
Placeable.SizeChanged
Placeable.ScaleChanged
Placeable.RotationChanged
Placeable.ActualLocationChanged
Placeable.ActualSizeChanged
Placeable.BoundaryChanged
AbstractBindable.PropertyChanged
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
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 Source

NodeMCUWS2812USBDevice(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 Source

Channel

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 Source

GetLedCustomData(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
RGB.NET.Core.AbstractRGBDevice<RGB.NET.Devices.WS281X.NodeMCU.NodeMCUWS2812USBDeviceInfo>.GetLedCustomData(RGB.NET.Core.LedId)
| Edit this page View Source

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.

Overrides
AbstractRGBDevice<NodeMCUWS2812USBDeviceInfo>.GetLedsToUpdate(bool)

Implements

IRGBDevice<TDeviceInfo>
ILedStripe
IRGBDevice
IEnumerable<T>
IEnumerable
IPlaceable
IBindable
INotifyPropertyChanged
IDisposable
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX