Hey there,
i bought a BlinkStick Flex about a week ago, and it is absolutely awesome!
My problem now:
I have tried to pulse a random LED (of 32 total) with the C# function Pulse()
.
The first LED does its task perfectly, but the second time i try to call Pulse() the app crashes with this Exception:
System.IO.IOException: "GetFeature failed."
(in the WinHidStream.cs file)
What am I missing here?
My test-code:
BlinkStick BStick = BlinkStick.FindFirst();
BStick.OpenDevice();
BStick.Pulse(0, *random number*, 255, 255, 255, 1, 500,50);
BStick.Pulse(0, *random number*, 255, 255, 255, 1, 500,50);
BStick.Pulse(0, *random number*, 255, 255, 255, 1, 500,50);
BStick.CloseDevice();
btw: this happens completly random. Sometimes it works sometimes it crashes on the second Pulse()
.
Thank you and greetings from Germany