# Path: bibliopixel/drivers/spi_interfaces.py
# class SPI_INTERFACES(IntEnum):
#     FILE = 0
#     PYDEV = 1
#     PERIPHERY = 2
#     DUMMY = 3


import functools
from ...drivers.spi_interfaces import SPI_INTERFACES

USAGE = """
A spi_interface is represented by a string.

Possible values are """ + ', '.join(sorted(SPI_INTERFACES.__members__))


@functools.singledispatch
def make(c):
    raise ValueError("Don't understand type %s" % type(c), USAGE)



# Path: bibliopixel/drivers/spi_interfaces.py
# class SPI_INTERFACES(IntEnum):
#     FILE = 0
#     PYDEV = 1
#     PERIPHERY = 2
#     DUMMY = 3


# Path: bibliopixel/project/types/spi_interface.py
import functools
from ...drivers.spi_interfaces import SPI_INTERFACES


USAGE = """
A spi_interface is represented by a string.

Possible values are """ + ', '.join(sorted(SPI_INTERFACES.__members__))


@functools.singledispatch
def make(c):
    raise ValueError("Don't understand type %s" % type(c), USAGE)



@make.register(SPI_INTERFACES)