Uses several counters, shiftregisters to create a moving light. Input and Input can control speed and brightness respectively. Brightness control is achieved by PWM of the output bits at 50Hz. Simulated with 6KHz clock signal.
After reset it starts moving the switched on LED. Input is clk and Input is reset (1=reset on, 0=reset off). By creating rising edges on Input and Input the two config spaces can be discovered. Conect LEDs with ~1K-10K Ohm serial resistors to output pins and connect push button switches to Input and Input which drive the inputs with logic zeros when idle and with logic 1 when pressed. Rising edge on these inputs selects the next settings.
|2||speed control||LED 2|
|3||brightness control||LED 3|