Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stm32f10x.h"
- #include <stdio.h>
- #include <stdint.h>
- //laborka3 Rak Bomba
- int main(void)
- {
- char txt[]="RAK";
- int j= strlen(txt);
- int n=17-j;
- while(1){
- int x =0;
- int y=0;
- int i=0;
- if(y==0)
- {
- for (i=0;i<n;i++)
- {
- lcdGoTo(y,x);
- lcdWrite(txt);
- delayMs(1000);
- lcdGoTo(y,x);
- lcdWrite(" ");
- x++;
- }
- y=1;
- x--;
- for (i=0;i<n;i++)
- {
- lcdGoTo(y,x);
- lcdWrite(txt);
- delayMs(1000);
- lcdGoTo(y,x);
- lcdWrite(" ");
- x++;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement