Pages: [1]   Go Down
Author Topic: Please help  (Read 485 times)
0 Members and 1 Guest are viewing this topic.
France Bas-Rhin
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Good evening has all

I work with an arduino Uno and two matrix has led thus 16X8 and the librairy LedControl.h with two MAX7219

How to post(show) a text on both matrix so that the text is readable(legible) on both matrix as an electronic bulletin board

Beforehand thank you for your help(assistant)

this text was translated on-line automatically

Peter
Logged

Si ton travail n’est pas à la hauteur de tes espérances sache que le grand chêne lui aussi a été un gland...

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 446
Posts: 23872
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Here is One way: make a larger array that will hold your message, perhaps 300 bytes long.

Define letters that are 8 bits high and say 6 bits wide:
A:
0 0 1 1 0 0
0 1 0 0 1 0
1 0 0 0 0 1
1 0 0 0 0 1
1 1 1 1 1 1
1 0 0 0 0 1
1 0 0 0 0 1
1 0 0 0 0 1

3 4 8 8 4 3  hex equivalent going vertically
F 8 8 8 4 F

store in memory as
byte fontArray[] = {
0x3F, 0x48, 0x88, 0x88, 0x48, 0x3F, // letter A
etc for other letters
};

For the message, copy the font bytes into the larger 300 byte array
Then transfer 16 columns of the large array to the MAX7219 registers,
every 200mS move the starting point for the 16 columns over 1 spot
1-16
  2-17
   3-18
    4-19
etc.
Don't forget a space between words - don't want this:
hithisismymessageisntitcool

and some punctiation marks too:
hi! this is my message. isn't it cool?

Once that works, you can add fancy options:
- Store the font array in PROGMEM to save on SRAM space
- Store the large array in EEPROM so your program can change it, and retain it after a reset or power loss
- Store only the number representing the letter in EEPROM (such 0x01, 0x02, 0x03, 0x04 for the letters A,B,C,D - 1 byte instead of 6!
- don't have a large array, only have 3-4 letters worth, just enough to hold the 2 being displayed and the next 2, with the data  being pulled from EEPROM  and translated from the font stored in PROGMEM
- provide a way to accept new data via serial port and write it to EEPROM
- provide a way to change the message scroll speed

Lots of options exist.

Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

France Bas-Rhin
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Good evening and thank you for answering has my message

My code the letter "A"
Code:
byte A [6] = {B01111111, B10001000, B10001000, B10001000, B01111111, B00000000};
And then matrix 1 
Code:
lc.setRow matrix 1 (0, tre+1, A [1]);
And then matrix 2
Code:
lc.setRow matrix 2 (1, tre+1, A [1]);
But with several caracteres the display(posting) on both matrix is not fluid caratesres passes of the matrix 1 towards the matrix 2 has tour(tower,ballot) of role I would like that both matrices train(form) only the only one with 16X8 led beforehand

this text was translated on-line automatically
thank you
Logged

Si ton travail n’est pas à la hauteur de tes espérances sache que le grand chêne lui aussi a été un gland...

Canberra Australia
Offline Offline
God Member
*****
Karma: 8
Posts: 505
Hardcore Arduino
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Jean Pierre,

I think that language is a bit of a barrier here. Why don't you try the French section of the forum at

http://arduino.cc/forum/index.php/board,33.0.html

Peter.
Logged


Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 446
Posts: 23872
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, this is not translating well.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

France Bas-Rhin
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you   

I go to see(visit) with them
Logged

Si ton travail n’est pas à la hauteur de tes espérances sache que le grand chêne lui aussi a été un gland...

Pages: [1]   Go Up
Jump to: