Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void lcd_string( const char *data )
- {
- int anz =0;
- int row =1;
- while( *data != '\0' )
- {
- if(anz > 16)
- {
- row++;
- anz =0;
- }
- if(row > 4)
- row = 0;
- if(row == 1)
- lcd_setcursor(anz,1);
- else if(row == 2)
- lcd_setcursor(anz,2);
- else if(row == 3)
- lcd_setcursor(anz,3);
- else if(row == 4)
- {
- lcd_setcursor(anz,4);
- }
- lcd_data( *data++ );
- anz++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement