Guest User

Untitled

a guest
Jul 15th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. CON
  2.  
  3. _clkmode = xtal1 + pll16x
  4. _xinfreq = 5_000_000
  5.  
  6.  
  7. OBJ
  8. kb : "keyboard"
  9.  
  10.  
  11. PUB start | i
  12.  
  13. 'start the keyboard
  14. kb.start(26, 27)
  15.  
  16. 'enable LEDs
  17. dira[23] := 1
  18. dira[22] := 1
  19.  
  20. 'echo keystrokes in hex
  21. repeat
  22. kb.getkey
  23. outa[22] := 1
  24. outa[23] := 1
  25. waitcnt(clkfreq/16 + cnt)
  26. outa[22] := 0
  27. outa[23] := 0
Add Comment
Please, Sign In to add comment