# VB API - All leds at once

**URL:** <https://forums.blinkstick.com/t/vb-api-all-leds-at-once/1296>\
**Category:** Support\
**Created:** [January 3, 2020, 3:43pm UTC](https://forums.blinkstick.com/t/vb-api-all-leds-at-once/1296 "2020-01-03T15:43:02Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![g.touwaide](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/g/85e7bf/32.png) [@g.touwaide](https://forums.blinkstick.com/u/g.touwaide)\
**Post date:** [January 3, 2020, 3:43pm UTC](https://forums.blinkstick.com/t/vb-api-all-leds-at-once/1296/1 "2020-01-03T15:43:02Z")

</div>

Hi,

I just receive my BlinkStick Flex a few days ago. Blinkstick is a bit overkill for my purpose but it seems to be the simplest usb-controllable leds.  
I’m wondering if anyone use the VB API? it doesn’t seem to have been developed for a while at the expense of the python API.

For now, I’m trying to get all my leds to blink at once. Is there any other way than to loop on every led? By switching my blinkstick to mode 3, I manage to make 8 leds flash in one command. I’m having a little trouble understanding the reason why…

Regards,

---

<div class="post-metadata">

**Author:** ![Diff](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/diff/32/553_2.png) [@Diff](https://forums.blinkstick.com/u/Diff)\
**Post date:** [January 5, 2020, 2:42pm UTC](https://forums.blinkstick.com/t/vb-api-all-leds-at-once/1296/2 "2020-01-05T14:42:18Z")

</div>

The SetColors() method seems to be what you’re looking for. Lets you set all LEDs at once instead of individually.

---

<div class="post-metadata">

**Author:** ![g.touwaide](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/g/85e7bf/32.png) [@g.touwaide](https://forums.blinkstick.com/u/g.touwaide)\
**Post date:** [January 6, 2020, 8:04am UTC](https://forums.blinkstick.com/t/vb-api-all-leds-at-once/1296/3 "2020-01-06T08:04:20Z")

</div>

Hello,  
Thank you for your help, I didn’t notice this function in the docs.  
Anyway, even with blinckstick client, I can’t control further than led number 8…

---

<div class="post-metadata">

**Author:** ![g.touwaide](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/g/85e7bf/32.png) [@g.touwaide](https://forums.blinkstick.com/u/g.touwaide)\
**Post date:** [January 16, 2020, 3:55pm UTC](https://forums.blinkstick.com/t/vb-api-all-leds-at-once/1296/4 "2020-01-16T15:55:08Z")

</div>

Up, nobody can help me?  
Is there any way to reset/reflash the firmware?

Regards,

---

<div class="post-metadata">

**Author:** ![Diff](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/diff/32/553_2.png) [@Diff](https://forums.blinkstick.com/u/Diff)\
**Post date:** [January 23, 2020, 10:24pm UTC](https://forums.blinkstick.com/t/vb-api-all-leds-at-once/1296/5 "2020-01-23T22:24:50Z")

</div>

Check out the documentation on the different blinkstick modes. I think the one you’re in is called mirror mode. I don’t know what its purpose is but it limits you to 8 LEDs.

---

<div class="post-metadata">

**Author:** ![g.touwaide](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/g/85e7bf/32.png) [@g.touwaide](https://forums.blinkstick.com/u/g.touwaide)\
**Post date:** [January 24, 2020, 12:03pm UTC](https://forums.blinkstick.com/t/vb-api-all-leds-at-once/1296/6 "2020-01-24T12:03:27Z")

</div>

Here is my configuration and my test code,

 ![image](https://forums.blinkstick.com/uploads/default/original/1X/12772fec75e5081f2187287b5ff858091557bada.png)

About blinkstick mode, it is correct according to the doc:  
[https://www.blinkstick.com/help/tutorials/blinkstick-pro-modes](https://www.blinkstick.com/help/tutorials/blinkstick-pro-modes)

Still no chance to get this working. On visual inspection, it doesn’t appear to be an electrical problem. The led strip is intact…

---

<div class="post-metadata">

**Author:** ![arvydas](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/arvydas/32/242_2.png) [@arvydas](https://forums.blinkstick.com/u/arvydas)\
**Post date:** [January 24, 2020, 6:00pm UTC](https://forums.blinkstick.com/t/vb-api-all-leds-at-once/1296/7 "2020-01-24T18:00:55Z")

</div>

Happy to help here! Is there any particular reason why you need to use VB for this? Would you be OK to use [VB.NET](http://VB.NET) as it is a bit more robust?

---

<div class="post-metadata">

**Author:** ![g.touwaide](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/g/85e7bf/32.png) [@g.touwaide](https://forums.blinkstick.com/u/g.touwaide)\
**Post date:** [January 27, 2020, 8:51am UTC](https://forums.blinkstick.com/t/vb-api-all-leds-at-once/1296/8 "2020-01-27T08:51:19Z")

</div>

I have to interface with a script that I’m not the author of that runs in vbscript, on a machine that I don’t have control over…

---

<div class="post-metadata">

**Author:** ![g.touwaide](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/g/85e7bf/32.png) [@g.touwaide](https://forums.blinkstick.com/u/g.touwaide)\
**Post date:** [February 28, 2020, 3:52pm UTC](https://forums.blinkstick.com/t/vb-api-all-leds-at-once/1296/9 "2020-02-28T15:52:59Z")

</div>

I tried in python and it’s doesn’t work better. I looks like my blinkstick is just broken? I don’t trust it anymore. Too bad it was for industrial use…

---

<div class="post-metadata">

**Author:** ![arvydas](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/arvydas/32/242_2.png) [@arvydas](https://forums.blinkstick.com/u/arvydas)\
**Post date:** [March 22, 2020, 6:39pm UTC](https://forums.blinkstick.com/t/vb-api-all-leds-at-once/1296/10 "2020-03-22T18:39:23Z")

</div>

I think I just sorted it out. You can grab the latest version of BlinkStick Interop from here:

> [@BlinkStick Interop for COM beta release](https://forums.blinkstick.com/t/blinkstick-interop-for-com-beta-release/84):
>
> 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 re…

And you can see a sample code in the Wiki:

> **[Buffered mode](https://github.com/arvydas/BlinkStickInterop/wiki/Buffered-mode)**
>
> BlinkStick COM interface to control devices connected to the computer - arvydas/BlinkStickInterop

---

<div class="post-metadata">

**Author:** ![si458](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/si458/32/614_2.png) [@si458](https://forums.blinkstick.com/u/si458)\
**Post date:** [June 13, 2020, 6:54pm UTC](https://forums.blinkstick.com/t/vb-api-all-leds-at-once/1296/11 "2020-06-13T18:54:02Z")

</div>

Hi,  
im having issues with the COM control and VB6  
ive referenced the TLB file as VB6 automatically picked it up and was in the list BUT  
every time i try to do anything i keep getting  
**Run-time error ‘-2146234304 (80131040)’ Automation Error**  
on the **finder.FindFirst** line  
im using the very simple basic code from the github wiki  
[https://github.com/arvydas/BlinkStickInterop/wiki#basic-usage](https://github.com/arvydas/BlinkStickInterop/wiki#basic-usage)  
ive tried running my vb6.exe as admin and without admin  
any help would be amazing!  
Regards  
Simon
