Hearty
Newbie level 4
Hi,
Before all, I'm not english, so sorry if my words are not correct.
I'm working on a LED matrix display,
The code is wrote under MikroC pro.
The pic is a 16f876a,
I have, actually 3 matrix, each drived via a 74hc595, and used SPI protocole.
all is work fine.
Here is my problem,
I have an array contained all charactères ascii table named "ASCII",
something like:
actually I can display and scroll all table's characteres,
I would like to know how can I type a message in a variable,
something like
MyTxt =" HELLO WORLD";
I don't know how I can do the relation between my ASCII array and the MyTxt variable.
I hope my question is clear.
Regards,
here is what I have actually
Before all, I'm not english, so sorry if my words are not correct.
I'm working on a LED matrix display,
The code is wrote under MikroC pro.
The pic is a 16f876a,
I have, actually 3 matrix, each drived via a 74hc595, and used SPI protocole.
all is work fine.
Here is my problem,
I have an array contained all charactères ascii table named "ASCII",
something like:
Code:
const unsigned short ASCII[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // Code pour char Espace
0x00, 0x00, 0x00, 0x00, 0xBF, 0x00, 0x00, 0x00, // Code pour char !
0x00, 0x24, 0x7E, 0x24, 0x24, 0x7E, 0x24, 0x00, // Code pour char #
0x00, 0x26, 0x49, 0x49, 0xFF, 0x49, 0x32, 0x00, // Code pour char $
0x00, 0x46, 0x26, 0x10, 0x08, 0x64, 0x62, 0x00, // Code pour char %
0x00, 0x70, 0x8E, 0x89, 0x99, 0x76, 0xC0, 0x00, // Code pour char &
0x00, 0x04, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, // Code pour char '
0x00, 0x7E, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, // Code pour char (
..
..
etc...
};
actually I can display and scroll all table's characteres,
I would like to know how can I type a message in a variable,
something like
MyTxt =" HELLO WORLD";
I don't know how I can do the relation between my ASCII array and the MyTxt variable.
I hope my question is clear.
Regards,
here is what I have actually