categorical-sectional
categorical-sectional copied to clipboard
Trouble Getting ws281x LEDs to Work with Code
I wired up a 382 Neo-Pixel Sectional of the lower 48 states. The check config script runs and is pulling the METARS from all airports, and can run the test neopixel script and get 382 LEDSs to cycle through RGB and then color wheel. When the check light wiring or controller script is ran the LEDs do not respond, but the scripts seem to be running fine. Have tried modifying the config file “mode”: ws281x, and added “gpio_pin”: board.D18. I even tried hard coding board.D18 in the renderers script. Any ideas? Thank you
in config.json, it should have... ... "mode": "ws281x", "gpio_pin": 18, "pixel_count": 382, ...
in the log, you should see: get_renderer():39: Setting up WS281x on Pin18 for 382 lights
Thank you for the quick reply. Have made the changes to the config file, and am getting the same results. Also tried modifying the airport file from WS2801 to WS281X.
Thank you,
in the airport file, it needs to be lower case "ws2801"
Have changed the airport file to be all lower case. Deleted the categorical-sectional folder from the home directory and re-installed fresh from GitHub, but am still getting the same results on check-lights and controller scripts. Is there something I could be missing to get these to work with ws281x controller?
Are you running as root? Ie. sudo python3 controller.py
I am logged in as sudo su in the terminal before I launch script using python3 “script name.pay” From the categorical sectional folder, type “sudo su”, then “python3 check_light_wiring.py”. If I try as user pi, I get a permission/access denied error.