Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void scrollMessage( char *str )
- {
- char message[] = "123456789121345678";
- uint8_t leng = strlen(message);
- for ( int8_t i = 0 ; i < leng + 4 ; i++ )
- {
- if ( i > leng )
- {
- disp.dig[0] = 11;
- disp.dig[1] = 11;
- disp.dig[2] = 11;
- disp.dig[3] = 11;
- }
- else
- {
- disp.dig[0] = message[ 0 + i ] - '0';
- disp.dig[1] = message[ 1 + i ] - '0';
- disp.dig[2] = message[ 2 + i ] - '0';
- disp.dig[3] = message[ 3 + i ] - '0';
- }
- _delay_ms(250);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement