OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
hardware_io.gpio.rpi_gpio_header.RpiGpioHeader Class Reference

Raspberry Pi 40-pin GPIO header mapping. More...

Public Member Functions

GpioPin by_physical_pin (cls, int physical_pin)
 Return pin information by physical header pin number.
GpioPin by_bcm (cls, int bcm)
 Return pin information by BCM GPIO number.
int bcm_from_physical_pin (cls, int physical_pin)
 Convert a physical header pin number to a BCM GPIO number.
int physical_pin_from_bcm (cls, int bcm)
 Convert a BCM GPIO number to a physical header pin number.
bool is_gpio_pin (cls, int physical_pin)
 Return whether a physical header pin is a GPIO pin.
list[GpioPin] all_pins (cls)
 Return all header pins.
list[GpioPin] all_gpio_pins (cls)
 Return only pins with BCM GPIO numbers.

Detailed Description

Raspberry Pi 40-pin GPIO header mapping.

Physical header pin numbers are used as the primary key.


The documentation for this class was generated from the following file:
  • hardware_io/gpio/rpi_gpio_header.py