Hey,
My project is to get 4 RGB leds to go throuhg the rainbow spectrum useing a picaxe 08m2+ and two SN74HCT244 octal buffers. I attached a schematic but my main problem is the code.
I'm having trouble writing it up and when I do practice runs the LEDs flicker while fading during dim.
heres what I have so far not much wondering if anything can help. Thanks!
**broken link removed**
My project is to get 4 RGB leds to go throuhg the rainbow spectrum useing a picaxe 08m2+ and two SN74HCT244 octal buffers. I attached a schematic but my main problem is the code.
I'm having trouble writing it up and when I do practice runs the LEDs flicker while fading during dim.
heres what I have so far not much wondering if anything can help. Thanks!
Code:
#picaxe 08m2
symbol REDLED = 2
symbol GRNLED = 1
symbol BLULED = 4
symbol SPEED = 10
low BLULED
low REDLED
cycle:
b0 = GRNLED : call fadeup
b0 = GRNLED : call fadedown
return
fadedown:
for b1 = 0 to 255
pwm b0, b1, SPEED
next
high b0
return
fadeup:
for b1 = 255 to 0 step -1
pwm b0, b1, SPEED
next
low b0
return
**broken link removed**