mock_rpi_gpio.py 244 B

1234567891011121314151617181920
  1. #!./bin/python3
  2. # Mock GPIO module for non-Raspberry PI platforms
  3. BOARD=1
  4. IN=1
  5. PUD_DOWN=1
  6. PUD_UP=2
  7. def setmode(mode):
  8. pass
  9. def setwarnings(mode):
  10. pass
  11. def setup(pin, mode, pull_up_down=None):
  12. pass
  13. def input(pin):
  14. return 1