16f59 LED matrix (2)

All the character data can now be read correctly.

It is written to the SRAM, read back and displayed.

I made A-Z rolling through today.
About 1K from 2K codespace is used right now.

Here for instance some code that is used to roll through the alphabet. Imagine if this would be programmed in assembler!

It could not be contained reasonably, stretching over many pages.

Code:
         curr_chr_size=get_b(&alpha_chr[chr_curr],0);

            for(i=0;i<5;i++){store_ram(16+i,0);
            display_data[display_pos[i]]=0;}

            for(i=0;i<curr_chr_size;i++)
            {store_ram(16+i,get_b(&alpha_chr[chr_curr],i+1));}

            chr_curr++;
            if(chr_curr>25)chr_curr=0;
  
            for(i=0;i<curr_chr_size;i++)
            {display_data[display_pos[i]]=load_ram((16+(curr_chr_size-1))-i);}
Here a video: http://youtu.be/EMWzsxNDoVw

Blog entry information

Author
takao21203
Views
573
Last update

More entries in General

More entries from takao21203

Share this entry

Top