Advertisement
Guest User

Untitled

a guest
Apr 4th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $sim
  2.  
  3. Config Lcdpin = Pin , Db4 = P3.4 , Db5 = P3.5 , Db6 = P3.6 , Db7 = P3.7 , E = P3.3 , Rs = P3.1
  4.  
  5. Deflcdchar 0 , 2 , 4 , 14 , 8 , 14 , 2 , 14 , 32              ' replace ? with number (0-7)     ś
  6. Deflcdchar 1 , 32 , 2 , 4 , 14 , 8 , 8 , 14 , 32              ' replace ? with number (0-7)     ć
  7. Deflcdchar 2 , 32 , 32 , 4 , 6 , 12 , 4 , 4 , 32              ' replace ? with number (0-7)     ł
  8. Deflcdchar 3 , 32 , 32 , 14 , 10 , 12 , 8 , 14 , 32           ' replace ? with number (0-7)
  9.  
  10. P2 = 0
  11.  
  12. Cls
  13. Lcd "Naci" ; Chr(0) ; "nij START"
  14.  
  15. Do
  16.    Bitwait P0.0 , Reset
  17.    Cls
  18.    Lcd "Nape" ; Chr(2) ; "nianie"
  19.    P2.7 = 1
  20.    Wait 2
  21.    P2.7 = 0
  22.    Cls
  23.    Lcd "Pranie"
  24.    P2.5 = 0
  25.    P2.6 = 1
  26.    Wait 1
  27.    P2.6 = 0
  28.    P2.5 = 1
  29.    Wait 1
  30.    P2.5 = 0
  31.    P2.6 = 1
  32.    Wait 1
  33.    P2.6 = 0
  34.    P2.5 = 1
  35.    Wait 1
  36.    P2.5 = 0
  37.    P2.6 = 1
  38.    Wait 1
  39.    P2.6 = 0
  40.    P2.5 = 1
  41.    Wait 1
  42.    P2.5 = 0
  43.    Cls
  44.    Lcd "Usuwanie wody"
  45.    P2.4 = 1
  46.    Wait 2
  47.    P2.4 = 0
  48.    Cls
  49.    Lcd "P" ; Chr(2) ; "ukanie"
  50.    P2.3 = 1
  51.    Wait 2
  52.    P2.3 = 0
  53.    Cls
  54.    Lcd "Wirowanie"
  55.    P2.2 = 1
  56.    Wait 2
  57.    P2.2 = 0
  58.    Cls
  59.    Lcd "Koniec pro" ; Chr(3) ; "ramu"
  60.    Wait 3
  61.  
  62.    P2 = 0
  63.    P0.0 = 1
  64.  
  65.    Cls
  66.    Lcd "Naci" ; Chr(0) ; "nij START"
  67.  
  68. Loop
  69. End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement