@classmethod
def from_name(cls, name, board, *args, **kwargs):
    ' Creates a new binhoAccessory object from its name. '
    target_name = name.lower()
    for subclass in cls.__subclasses__():
        subclass_name = subclass.get_name()
        if (target_name == subclass_name.lower()):
            return subclass(board, *args, **kwargs)
    raise DriverCapabilityError("No known driver for accessory '{}'.".format(name))
Creates a new binhoAccessory object from its name.
@classmethod
def from_name(cls, name, board, *args, **kwargs):
    '  '
    target_name = name.lower()
    for subclass in cls.__subclasses__():
        subclass_name = subclass.get_name()
        if (target_name == subclass_name.lower()):
            return subclass(board, *args, **kwargs)
    raise DriverCapabilityError("No known driver for accessory '{}'.".format(name))