Advertisement
Guest User

Untitled

a guest
May 24th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.45 KB | None | 0 0
  1. #include "stm32f10x.h"
  2. #include <stdio.h>
  3. #include <stdint.h>
  4.  
  5. //laborka3 Rak Bomba
  6.  
  7. int main(void)
  8.  
  9.  
  10. {
  11. char txt[]="RAK";
  12. int j= strlen(txt);
  13. int n=17-j;
  14.  
  15. while(1){
  16. int x =0;
  17. int y=0;
  18. int i=0;
  19. if(y==0)
  20. {
  21. for (i=0;i<n;i++)
  22. {
  23. lcdGoTo(y,x);
  24. lcdWrite(txt);
  25. delayMs(1000);
  26. lcdGoTo(y,x);
  27. lcdWrite(" ");
  28. x++;
  29. }
  30. y=1;
  31. x--;
  32. for (i=0;i<n;i++)
  33. {
  34. lcdGoTo(y,x);
  35. lcdWrite(txt);
  36. delayMs(1000);
  37. lcdGoTo(y,x);
  38. lcdWrite(" ");
  39. x++;
  40. }
  41. }
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement