Skip to content

Raspberry Pi gpio monitoring utility

Notifications You must be signed in to change notification settings

KarstenGorkow/gpiotest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

gpiotest.py

Small console utility to do gpio pin monitor & Raspberry Pi DYI projects debugging

screenshot

To start, enter sudo python gpiotest.py from console

Keyboard commands:

Q - Quit program

P - Pause program, to continue press 'P' again

D - Set debounce value (ms)

U - Configure pullup resistors for input pins. Enter GPIO line number (not pin number on the plug), then enter value for pullup (0 for GPIO.PUD_DOWN or 1 GPIO.PUD_UP)

O - Press to output something. Enter GPIO line number and value. Pin became 'output' and program stop monitoring it's state.

I - Return pin to 'input' state. Program will show it's state.

Pin indication:

  1. Input pin not inversed, output inversed
  2. After equal sign - pin state True/False (1/0)
  3. In the brackets - pullup resistor state (^) - High or (v) - Low

Command line options:

You can use -g or --gpio_num switch with 17 or 26 parameter to override automatic hardware detection.

Questions

Feel free to contact me on Raspberry Pi forum or by e-mail

About

Raspberry Pi gpio monitoring utility

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%