Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. import isel.leic.usbio.*;
  2.  
  3. public class lic {
  4.  
  5. public static int CLK = 0x01;
  6.  
  7. public static void main(String[] args) {
  8. while((~UsbPort.in() & 0x0f) != 0){
  9. if((~UsbPort.in() & 0x0f) != 0x0f){
  10. UsbPort.out(CLK);
  11. UsbPort.out(~CLK);
  12. }
  13. else
  14. if((~UsbPort.in() & 0x0f) == 0x0f){
  15. UsbPort.out(~CLK);
  16. UsbPort.out(CLK);
  17. }
  18.  
  19. }
  20.  
  21. }
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement