jinks_devices.raspberry_pi

Raspberry pi module.

Classes

RaspberryPi()

Raspberry Pi module class.

class jinks_devices.raspberry_pi.RaspberryPi

Bases: object

Raspberry Pi module class.

BUSY_PIN = 24
RST_PIN = 17
DC_PIN = 25
PWR_PIN = 18
DEV_SPI: CDLL | None = None
__init__()
GPIO_BUSY_PIN: Any
GPIO_RST_PIN: Any
GPIO_DC_PIN: Any
GPIO_PWR_PIN: Any
static check_platform()

Check if the current device is a Raspberry Pi.

Raises:

ValueError – if the current platform doesn’t match.

Return type:

None

digital_write(pin, value)

Digitally write to a known pin.

Return type:

None

read_busy()

Digitally read the busy pin.

Return type:

int

module_init()

Initialise SPI to the display module.

Return type:

None

module_exit(cleanup=False)

Stop SPI to the display module and turn off all known pins.

Return type:

None