How to use the pfio.get_pin_number function in pfio

To help you get started, we’ve selected a few pfio examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github thomasmacpherson / piface / python / piface / emulator.py View on Github external
def get_pin_number(bit_pattern):
    """Returns the lowest pin number from a given bit pattern"""
    return pfio.get_pin_number(bit_pattern)