Nichia and the Propeller
Newzed
Posts: 2,503
Finished my new Propeller board today.· Hooked it up, plugged in a dual Nichia board and ran my program.· I get nine beautiful colors that look just the same as they did with the Stamp.· Never did find out how to PWM with the Prop so I figured out my own system.· For instance a PWM duty cycle of 200 is on for 78% and off 22%.· I set the time·base for· each LED at 100.· Duration is defined by the repeat statement.· ·PWM 200 is:
repeat 500
·· outa[noparse][[/noparse]red] := 1
·· waitcnt(wait*78 + cnt)····· 'wait = .1ms
·· out[noparse][[/noparse]red] := 0
·· waitcnt(wait*22 + cnt)
Took a bit of time to calculate the percentages for all the LEDs and the different colors but now it is done.
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.
That is why they call it the present.
Don't have VGA?
Newzed@aol.com
·
repeat 500
·· outa[noparse][[/noparse]red] := 1
·· waitcnt(wait*78 + cnt)····· 'wait = .1ms
·· out[noparse][[/noparse]red] := 0
·· waitcnt(wait*22 + cnt)
Took a bit of time to calculate the percentages for all the LEDs and the different colors but now it is done.
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.
That is why they call it the present.
Don't have VGA?
Newzed@aol.com
·
Comments
But i got some help from the forum members. I would like to see some pic or better little video..
Anubisbot