These instructions assume you have installed LightShow Pi, and have setup your hardware for controlling lights. Now it’s time to test out your hardware out with LightShow Pi and get your lights blinking!
Default Hardware Configuration
The default hardware configuration for LightShow Pi assumes you are using the first 8 GPIO ports (GPIO0 – GPIO7) to control 8 channels of lights. There are several other user contributed configurations provided to support commonly used hardware configurations in the lightshowpi/config/contrib directory of the install.
Verifying Your Hardware Configuration
You can verify your hardware setup and configuration are setup properly by blinking each channel one at a time using the following command from the main LightShow Pi directory (/home/pi/lightshowpi if you’ve followed the default install steps):
sudo python py/hardware_controller.py --state=flash
You can also fade each channel in and out using software PWM using the following command:
sudo python py/hardware_controller.py --state=fade
Press <CTRL>-C in the same terminal window to stop the blinking / fading lights test.
Note that software PWM fading will not work with all hardware configurations and all lights (it works best with either direct powered LEDs, or SSR controlled incandescent lights). The default configuration has each channel using software PWM fading. You can override this default behavior with the pin_modes configuration option (search for pin_modes in lightshowpi/config/defaults.cfg for more details).
The hardware controller provides other useful tools for testing your hardware and software configuration, see the command line help for more details:
sudo python py/hardware_controller.py -h