Home \ Help \ Search \ Login RSS

Welcome, Guest. Please Login

This forum is now READ-ONLY! Please visit http://forum.wiring.co/ for the new forum.

Wiring ForumWiring HardwareTangible computing › ledmatrix+nMAX7221 => works on Arduino, not here!

Page Index Toggle Pages: 1
ledmatrix+nMAX7221 => works on Arduino, not here! (Read 7950 times)
05/24/08 at 12:37:43

julienb   Offline
Junior Member
wiring AND arduino owner
France

Posts: 81
**
 
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!  Cry Cry Cry


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   Cry

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) ?
 

IP Logged
 
Reply #1 - 05/24/08 at 19:55:40

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
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.
 
IP Logged
 
Reply #2 - 05/25/08 at 09:50:57

julienb   Offline
Junior Member
wiring AND arduino owner
France

Posts: 81
**
 
So, I may buy an arduino  Cry  Cry  Cry
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 Sad
 

IP Logged
 
Reply #3 - 05/25/08 at 11:24:25

julienb   Offline
Junior Member
wiring AND arduino owner
France

Posts: 81
**
 
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?
 

IP Logged
 
Reply #4 - 05/25/08 at 16:39:08

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
hi Julien, what do you mean by ISR ?
 
IP Logged
 
Reply #5 - 05/25/08 at 18:32:42

julienb   Offline
Junior Member
wiring AND arduino owner
France

Posts: 81
**
 
I'm not a specialist... you already knew that  Wink
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...

 

IP Logged
 
Reply #6 - 05/25/08 at 19:59:58

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
ok, of course there is interrupts routines in Wiring, hech the reference for attachInterrupt() Smiley
 
IP Logged
 
Reply #7 - 05/25/08 at 20:24:39

julienb   Offline
Junior Member
wiring AND arduino owner
France

Posts: 81
**
 
i'm sure about that
but unable to adapt the arduino code I've found..

sorry for the questions Sad
 

IP Logged
 
Reply #8 - 05/25/08 at 22:01:00

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
Send a specific part of the code that needs to be done and I´ll try to help converting it using the standard language.
 
IP Logged
 
Reply #9 - 05/26/08 at 11:45:21

julienb   Offline
Junior Member
wiring AND arduino owner
France

Posts: 81
**
 
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.

 

IP Logged
 
Page Index Toggle Pages: 1