need help with a program
stilgar
Posts: 47
Hello,
I am having trouble with a program from the object exchange by Colin Fox.
The program "led_pwm v1.0 "
When I try to use more than 8 LEDs, the program stops.
Is there a variable I need to change to fix this?
Also my finished project needs to run 32 LEDs, BUT, I only have 20 pins to use for the LEDs. the others are for sensors and sound.
Any points to figure this out?
thanks,
stilgar
I am having trouble with a program from the object exchange by Colin Fox.
The program "led_pwm v1.0 "
When I try to use more than 8 LEDs, the program stops.
Is there a variable I need to change to fix this?
Also my finished project needs to run 32 LEDs, BUT, I only have 20 pins to use for the LEDs. the others are for sensors and sound.
Any points to figure this out?
thanks,
stilgar
Comments
I can not find where the delay at 600 is? the clock settings often gets me confused. Could you direct me to the line in question? and maybe a corrected line?
thanks,
stilgar
delay long 600
which represents: variable name/variable data type/variable initial value
at the bottom of lm_pwm_1.spin in the DAT section
Found it, and that was the problem.
Thank you,
stilgar