-
-
Notifications
You must be signed in to change notification settings - Fork 114
/
Copy pathWs2815B.cs
25 lines (23 loc) · 1002 Bytes
/
Ws2815B.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Device.Spi;
namespace Iot.Device.Ws28xx
{
/// <summary>
/// Represents WS2815B LED driver.
/// </summary>
public class Ws2815b : Ws28xx
{
/// <summary>
/// Initializes a new instance of the <see cref="Ws2815b" /> class.
/// </summary>
/// <remarks>In contrast to <see cref="Ws2812b"/> this constructor changes the order of the color values.</remarks>
/// <param name="spiDevice">SPI device used for communication with the LED driver.</param>
/// <param name="width">Width of the screen or LED strip.</param>
/// <param name="height">Height of the screen or LED strip. Defaults to 1 (LED strip).</param>
public Ws2815b(SpiDevice spiDevice, int width, int height = 1)
: base(spiDevice, new BitmapImageNeo3Rgb(width, height))
{
}
}
}