-
-
Notifications
You must be signed in to change notification settings - Fork 114
/
Copy pathWs2812B.cs
24 lines (22 loc) · 872 Bytes
/
Ws2812B.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
// 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 WS2812B LED driver.
/// </summary>
public class Ws2812b : Ws28xx
{
/// <summary>
/// Initializes a new instance of the <see cref="Ws2812b" /> class.
/// </summary>
/// <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 Ws2812b(SpiDevice spiDevice, int width, int height = 1)
: base(spiDevice, new BitmapImageNeo3(width, height))
{
}
}
}