Advertisement
Guest User

Untitled

a guest
Feb 19th, 2013
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. >>> last = False
  2. >>>
  3. >>> while True:
  4. ... current = GPIO.input(3)
  5. ... if ( current != last ):
  6. ... last = current
  7. ... print(current)
  8. ... time.sleep(0.01);
  9. ...
  10. True
  11. False
  12. True
  13. False
  14. True
  15. False
  16. True
  17. False
  18. True
  19. False
  20. True
  21. False
  22. True
  23. False
  24. True
  25. False
  26. True
  27. False
  28. True
  29. False
  30. True
  31. False
  32. True
  33. False
  34. True
  35. False
  36. True
  37. False
  38. True
  39. False
  40. True
  41. False
  42. True
  43. False
  44. True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement