Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 893 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 893 Bytes

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
    }
    ...
]
...