gaston0902

Untitled

Aug 22nd, 2023
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/usr/bin/python
  2. import gpiod
  3. import sys
  4. def btn_status():
  5. line_index=32
  6. #chip=gpiod.Chip('gpiochip0')
  7. #pin=chip.get_lines([line_index])
  8. #pin.request(consumer="id0",type=gpiod.LINE_REQ_DIR_OUT)
  9. #state=pin.get_values()[0]
  10. print(0)
  11.  
  12. btn_status()
Advertisement
Add Comment
Please, Sign In to add comment