malmö / berlin
Offline
Jr. Member
Karma: 0
Posts: 58
fhp>--vs--<k3
|
 |
« Reply #5 on: January 22, 2007, 05:20:09 am » |
hej,
you could build your own matrix with the arduino,
you are having 3 pwm on the arduino, so use each of them for one colour, contect each color to each LED and the ground of each LED to on digitalPIn, thats it the rest is just some nice programming, ....
while i"m thinking about it you don"t need to connect the colors to the PWM, just some normal digitalOut PIn should be enough.
about the code:
put the first color to high and each LED how should light up in this color you have to set this grounds on (digitalWrite, ground of the LED, LOW) all the LED who should not light up have to be digitalWrite HIGH, ....
then turn the first color of and the secound one and again the game with the ground, ....
if you do this fast enough you will see mixed colors, nice isn"t it,...
further more, i was thinking about a nice funktion to have diffferent brightness, you could write a funktion which to the f++k 255 times (for example) so you could say if you want to have the red on 50% just turn it every second run on, and so on
i hope i could help you somehow, it is a little bit to early on a monday for me to come up with some good explanation, but i hope you got the idea,...
by the way where in berlin you are studying ? if you have some questions you could also ask in german....
ha det bra tomek
|