Wiring Forum
http://wiring.org.co/cgi-bin/yabb/YaBB.pl
Wiring Hardware >> Tangible computing >> ledmatrix+nMAX7221 => works on Arduino, not here!
http://wiring.org.co/cgi-bin/yabb/YaBB.pl?num=1211632664

Message started by julienb on 05/24/08 at 12:37:43

Title: ledmatrix+nMAX7221 => works on Arduino, not here!
Post by julienb on 05/24/08 at 12:37:43
on this post : http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1211501076/0
there is a code that works VERY fine with arduino board.

I tried and I'm trying yet to test it with Wiring anvironment ... it doesn't work fine!  :'( :'( :'(


I post here the last conclusion:

on my computer, with Arduino environment: it compiles fine!
Of course, I cannot use it to upload the code to my ... Wiring board   :'(

it is probably a path/code problem

FrequencyTimer2 doesn't give a correct compilation too


is anyone could help me(us... I'm not alone on that) ?

Title: Re: ledmatrix+nMAX7221 => works on Arduino, not he
Post by barragan on 05/24/08 at 19:55:40
Dear Julien, please use the Matrix library in Wiring, FrequencyTimer2 is not part of the Wiring language specification, it must be some sort of internal name used in the Arduino environment.

Title: Re: ledmatrix+nMAX7221 => works on Arduino, not he
Post by julienb on 05/25/08 at 09:50:57
So, I may buy an arduino  :'(  :'(  :'(
The reason is: I'm not enough a good coder and the community raised some code for driving RGB led matrix..

I'm not able to alter these codes to do the same with my pretty Wiring Board :(

Title: Re: ledmatrix+nMAX7221 => works on Arduino, not he
Post by julienb on 05/25/08 at 11:24:25
I add a question.

ISR seems to be THE way to drive matrix with a cycling shutdown of a chain of MAX7221.

Does it exist ISR code for wiring?
Does it exist another way?

Title: Re: ledmatrix+nMAX7221 => works on Arduino, not he
Post by barragan on 05/25/08 at 16:39:08
hi Julien, what do you mean by ISR ?

Title: Re: ledmatrix+nMAX7221 => works on Arduino, not he
Post by julienb on 05/25/08 at 18:32:42
I'm not a specialist... you already knew that  ;)
I read it on arduino forum (now, the arduino site is down..)
It seems to be a method to handle events cyclically ( ISR= interrupt sub routine?!?? )

a code cyclically shutdown each one of the 3 max.
One max is on at a time. (one max = one color)
the reason is: the Digs(ground) for each lines are common for the 3 max...


Title: Re: ledmatrix+nMAX7221 => works on Arduino, not he
Post by barragan on 05/25/08 at 19:59:58
ok, of course there is interrupts routines in Wiring, hech the reference for attachInterrupt() :)

Title: Re: ledmatrix+nMAX7221 => works on Arduino, not he
Post by julienb on 05/25/08 at 20:24:39
i'm sure about that
but unable to adapt the arduino code I've found..

sorry for the questions :(

Title: Re: ledmatrix+nMAX7221 => works on Arduino, not he
Post by barragan on 05/25/08 at 22:01:00
Send a specific part of the code that needs to be done and IŽll try to help converting it using the standard language.

Title: Re: ledmatrix+nMAX7221 => works on Arduino, not he
Post by julienb on 05/26/08 at 11:45:21
I spoke about the playground:  http://www.arduino.cc/playground/Main/MultiplexMAX72xx

But you gave me a tip/solution in another post: using matrix library by creating 3 instances of Matrix object, one for each color.

Btw, the library mentionned in the playground doesn't work with wiring board.
mstimer2 (an alteration of FrequencyTimer2 library) doesn't work with atmel128 ; it seems made for atmel168 only.


Wiring Forum » Powered by YaBB 2.5 AE!
YaBB Forum Software © 2000-2010. All Rights Reserved.