jacdac.capacitive_button

Submodules

Package Contents

Classes

CapacitiveButtonClient

A configuration service for a capacitive push-button.

class jacdac.capacitive_button.CapacitiveButtonClient(bus: jacdac.bus.Bus, role: str)

Bases: jacdac.bus.Client

A configuration service for a capacitive push-button. Implements a client for the Capacitive Button service.

property threshold Optional[float]

Indicates the threshold for up events., _: /

calibrate() None

Request to calibrate the capactive. When calibration is requested, the device expects that no object is touching the button. The report indicates the calibration is done.