Simple wrapper written in Visual Basic .NET (.NET Framework 4.5.2)
Simple Usage: VB
Dim AdalightDevices As List(Of String) = adalight_wrapper.Adalight.GetAdalightDevices
Dim LEDCount As Integer = 50
Using Ada = New adalight_wrapper.Adalight(AdalightDevices(0), LEDCount)
Ada.OpenConn()
For i = 0 To LEDCount - 1
Ada.LEDMatrix(i) = {255, 255, 255}
Next
Ada.Send()
End Using
C#
List<string> AdalightDevices = adalight_wrapper.Adalight.GetAdalightDevices();
int LEDCount = 50;
using (var Ada = new adalight_wrapper.Adalight(AdalightDevices[0], 50))
{
Ada.OpenConn();
for (int i = 0; i < LEDCount; i++)
{
Ada.LEDMatrix[i] = new[] { 255, 255, 255 };
}
Ada.Send();
}
#LEDMatrix This is an array containing the RBG (note: not RGB) information for each LED. Send RED to LED ##21 would like like this (VB example):
Ada.LEDMatrix(21) = {255,0,0}
Just star the repo or make a donation.
Your help is valuable since this is a hobby project for all of us: we do development during out-of-office hours.
Pull requests are very welcome.
Adalight Wrapper was initially written by Markus Karl Wackermann.