0

NeoPixel C++ library for Windows?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

NeoPixel C++ library for Windows?

by cyourch on Sat Sep 25, 2021 5:58 pm

I'm writing a C++ app using Microsoft Visual Studio on Windows 10. I'd like to control multiple NeoPixel light strips.

I've seen (and used) the Adafruit_Neopixel library for the Arduino and am wondering if you have a C/C++ Library or code to control the Neopixels from a Windows app?

Thanks for an awesome product!

Chris

cyourch
 
Posts: 1
Joined: Sat Sep 25, 2021 5:54 pm

Re: NeoPixel C++ library for Windows?

by adafruit_support_bill on Sun Sep 26, 2021 6:54 am

Controlling Neopixels from a Windows App would not be easy. The timing constraints for driving the pixels are very tight, and a multitasking operating system like Windows needs to divide up the CPU time to service several applications and background services.

To guarantee proper timing, the Arduino library disables all interrupts while writing to the pixels. To do that in a Windows system, you would need to write a kernel-level driver. Tools and libraries for writing kernel-level drivers can be found in the WDK which can be downloaded from Microsoft.

A simpler approach would be to control the pixels from an Arduino program - and have your windows app send it commands via the USB/Serial connection.

adafruit_support_bill
 
Posts: 82090
Joined: Sat Feb 07, 2009 10:11 am

Please be positive and constructive with your questions and comments.