Shop OBEX P1 Docs P2 Docs Learn Events
Nichia and the Propeller — Parallax Forums

Nichia and the Propeller

NewzedNewzed Posts: 2,503
edited 2007-05-25 00:20 in Propeller 1
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
·

Comments

  • AnubisbotAnubisbot Posts: 112
    edited 2007-05-25 00:20
    Nice , any pictures of the action, i finished my pwm generator to, almost the same way, exept that i only have one loop for up to 32 pins.in one cog.
    But i got some help from the forum members. I would like to see some pic or better little video..

    Anubisbot
Sign In or Register to comment.