I’m very pleased to announce the availability of BlinkStick Interop COM API for Windows. This API allows access to BlinkStick devices from any programming language on Microsoft Windows that supports COM interoperability. One of those languages is Visual Basic and Visual Basic for Applications. It means that now you can directly control BlinkStick from Microsoft Office products like Word, Excel, PowerPoint and Access, but not limited to those applications only.
Basic usage in Visual Basic
Add reference to BlinkStickInterop.
' The finder class looks for BlinkStick devices and returns reference to them
Dim finder As New BlinkStickFinder
' Variable to store reference to the device
Dim led As BlinkStick
' Find first BlinkStick on OS
Set led = finder.FindFirst()
If led Is Nothing Then
MsgBox "BlinkStick not found!"
Else
Call led.SetColor(0, 255, 0) ' Set the color of the LED to green
End If
Full API reference documentation is installed with the library and can be found in the Start menu. The latest documentation is also available online.
More details and code examples will be added to BlinkStick Interop Wiki.
Download
BlinkStick_Interop_1.0_beta4_x86.msi - works only with 32bit applications. Installer for 64bit application support will be added soon.
Requires Microsoft .NET 4.0.
Please note that this is a beta release. If you have any issues, please post them as reply to this topic.
Source code is available on GitHub.
Previous releases
- BlinkStick_Interop_1.0_beta3_x86.msi
- BlinkStick_Interop_1.0_beta2_x86.msi
- BlinkStick_Interop_1.0_beta1_x86.msi
Changelog
2021-02-02 1.0-beta4
- Support for Visual Basic 6
2020-03-22 1.0-beta3
- Added function IBlinkStick.SetBuffered to enable buffered mode
- Added function IBlinkStick.SetUnbuffered to disable buffered mode
- Added function IBlinkStick.SetColorRange to set buffer for multiple LEDs
- Added function IBlinkStick.Send to send data to LEDs
2015-01-19 1.0-beta2
- Added function IBlinkStickFinder.FindSerials to get the list of serial numbers of connected BlinkStick devices
2015-01-13 1.0-beta1
-
Initial release