Skip to content

qToggleServer driver for Raspberry Pi GPIOs based on RPi.GPIO

License

Notifications You must be signed in to change notification settings

qtoggle/qtoggleserver-rpigpio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This is an addon for qToggleServer.

It provides a qToggleServer driver for Raspberry Pi GPIOs based on the RPi.GPIO Python library.

The RPiGPIO port class allows controlling all available GPIOs, configuring them as inputs or outputs, enabling or disabling internal pulls.

The RPiGPIOFloat port class makes RPi GPIOs always act as outputs, leaving them floating when writing "low".

Install

Install using pip:

pip install qtoggleserver-rpigpio

Usage

qtoggleserver.conf:
...
ports = [
    ...
    {
        driver = "qtoggleserver.rpigpio.RPiGPIO"
        no = 18             # GPIO number
        def_value = true    # default value at startup
        def_output = true   # default output/input GPIO mode at startup
    }
    ...
]
...