Forum Index > Projects > Micro-readerboard project support
 Minor Font hack (Spinning clock)
 |  Printable Version
By: Anonymous: Kevin Osborn () on Monday, February 14 2011 @ 07:57 PM PST (Read 1709 times)  
Anonymous: Kevin Osborn

I just love these micro-readerboards. I started making one in preparation for a soldering project with 3 11 year olds. Now I want to make them for all my friends.

One thing that is interesting is how, if your attention wanders for just a second, you can lose the meaning of what's being displayed. I thought it would be cool to do a little animation to catch people's attention at the beginning. I thought a spinning clock would be cool, so I extended the font. There was already a "/", and by adding "\" "|" and "-" you can do a little spinner.

First add the following to the end of the Font table:

PHP Formatted Code
0x420,                                          //backward slash ('\') character.
0x4008,                                         //Dash('-') character.
0x044
 


Change or add one of the strings to include the sequence, for example:

PHP Formatted Code

const char StringA[] PROGMEM = "|/-\\|/-\\|/-\\|/-\\|/-\\|/-\\|  ";
 



Then after the lines that read:

PHP Formatted Code

                else if (buf[i] == '/')
                        FontWord = (uint16_t)pgm_read_word(&font_table[27]);
 


add

PHP Formatted Code

                else if (buf[i] == '\\')
                        FontWord = (uint16_t)pgm_read_word(&font_table[28]);
                else if (buf[i] == '-')
                        FontWord = (uint16_t)pgm_read_word(&font_table[29]);
                else if (buf[i] == '|')
                        FontWord = (uint16_t)pgm_read_word(&font_table[30]);
 






       
   



 All times are PDT. The time is now 04:36 AM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to Post 
Filtered HTML Allowed 
Censored Content 

Evil Mad Scientist Forum Archives — Read only!

Please visit our new forums for new discussions.


DIY Hardware for Electronic Art


The Original Egg-Bot Kit


Octolively
Interactive LED kits


Meggy Jr RGB
LED matrix game
development kit.


Business-card sized
AVR target boards


Peggy 2
LED Pegboard kits

My Account






Lost your password?