modular-led-controller-workstation icon indicating copy to clipboard operation
modular-led-controller-workstation copied to clipboard

Running With DotStar-apa102c

Open maxycatz opened this issue 6 years ago • 10 comments

How is the server run for DotStar or APA102C leds? I have both adafruit's DotStar and tinue APA102 libraries installed.

When running the server with $ sudo python3 server.py -D DotStar I get: server.py: error: argument -D/--device: invalid choice: 'DotStar' (choose from 'FadeCandy', 'RaspberryPi')

Many thanks.

maxycatz avatar Jul 12 '19 08:07 maxycatz

@maxycatz Hi, we haven't had any dotstar LEDs to test yet. I can prepare a branch for you if you're willing to test it.

segfault16 avatar Jul 12 '19 12:07 segfault16

DotStar is listed as a class in audioled./devices.py?

But, yes; certainly will test.

maxycatz avatar Jul 12 '19 16:07 maxycatz

@maxycatz If prepared a PR #122 for DotStar LED's. Please feel free to test it.

segfault16 avatar Jul 13 '19 10:07 segfault16

Wow, cheers. Will test today.

maxycatz avatar Jul 13 '19 10:07 maxycatz

Thought I had updated this; maybe I forgot to send.

Although the apa102 library is installed, I can only get apa102 library to load if I transfer tinue's colorsheme and driver folders into this project folder and then call via 'import from driver' .

Is this down to lack of understanding?

maxycatz avatar Jul 27 '19 11:07 maxycatz

@maxycatz I've updated the import path. Can you test again?

segfault16 avatar Jul 29 '19 03:07 segfault16

@maxycatz Any updates?

segfault16 avatar Jul 31 '19 17:07 segfault16

Sorry about delay; holidays and kids out of school; will try to asap.

maxycatz avatar Aug 16 '19 09:08 maxycatz

usage: server.py [-h] [-N NUM_PIXELS] [-R NUM_ROWS] [--device_candy_server DEVICE_CANDY_SERVER] [--device_panel_mapping DEVICE_PANEL_MAPPING] [-A AUDIO_DEVICE_INDEX] [-p PORT] [-C CONFIG_LOCATION] [--no_conf] [--no_store] [-D {FadeCandy,RaspberryPi}] [-DC DEVICE_CONFIG] [-P] [--strand] server.py: error: argument -D/--device: invalid choice: 'DotStar' (choose from 'FadeCandy', 'RaspberryPi')

DotStar is not listed in "allowed_devices". If you add it, you get other errors.

Sort of related:

I'm using the GenericUDP device I made a while back (for APA102s driven by ESP8266)... somewhere along the way I didn't push all of the changes or it broke (haven't touched this project in months) After pulling the new code and trying to determine where all I need to add a device... in the end I just renamed my GenericUDP method to FadeCandy and it works like a champ

I suppose I should make an issue but I don't understand why those would be hardcoded instead of "allowed_devices" checking globals to see what all methods are available in audioled/devices.py

ChasonDeshotel avatar Sep 17 '20 07:09 ChasonDeshotel

Hi @ChasonDeshotel They are hardcoded since I only want tested devices to be available on the cmd line options. See https://github.com/segfault16/modular-led-controller-workstation/pull/122

segfault16 avatar Sep 17 '20 07:09 segfault16