https://github.com/sam-k0/BlinkStick.NETCore
Cross-platform BlinkStick .NET Core library and GUI/CLI
https://github.com/sam-k0/BlinkStick.NETCore
blinkstick blinkstick-sdk csharp led library
Last synced: 12 months ago
JSON representation
Cross-platform BlinkStick .NET Core library and GUI/CLI
- Host: GitHub
- URL: https://github.com/sam-k0/BlinkStick.NETCore
- Owner: sam-k0
- Created: 2024-05-11T14:28:16.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-12-30T12:48:54.000Z (over 1 year ago)
- Last Synced: 2025-02-21T09:17:25.206Z (over 1 year ago)
- Topics: blinkstick, blinkstick-sdk, csharp, led, library
- Language: C#
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## BlinkStick Utilities
- BlinkStickNETCore: Cross-platform .NET Core library for BlinkStick (Flex, Mini, Strip)
- BlinkStickLinux: Linux GUI using Gtk# for controlling BlinkStick devices
- BlinkStickCLI: CLI for controlling BlinkStick devices
## BlinkStickNETCore
Usage:
```csharp
using BlinkStickNETCore;
BlinkStickFlex bs = new BlinkStickFlex(); // Get your blinkstick device
bs.SetColor(0,0,[0xFF,0x00,0x00]); // Set color of first LED to red
var num = bs.GetNumLeds(); // Get number of LEDs
for (int i = 0; i < num; i++)
{
bs.SetColor(0,i,[0xFF,0x00,0x00]); // Set color of all LEDs to red
}
```
### Building
Dependencies are:
- gtksharp (GUI)
- hidapi.net
- newtonsoft.json (GUI)
Build release: `dotnet build -c Release`