Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void scrollMessage( char *msg )
- {
- uint8_t z1 = 0 , z2 = 0;
- uint8_t first = 0, second = 0;
- first = GetCharacterIndex( *msg );
- second = GetCharacterIndex( *msg++ );
- while(1)
- {
- for( uint8_t j = 0 ; j < 8 ; j++ )
- {
- for( uint8_t i = 0 ; i < 8 ; i++ )
- {
- z1 = ~pgm_read_byte(&charMap[ 8 ][i]);
- z2 = ~pgm_read_byte(&charMap[ 9 ][i]);
- VRAM[i] = (z1 << j) | (z2 >> (8-j));
- }
- _delay_ms(1000);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement