# Path: nanpy/arduinoboard.py
# class ArduinoObject(object):
#     connection=None
# 
#     def __init__(self, connection=None):
#         self.namespace = self.__class__.__name__
#         self.id = 0
#         self.connection = connection
# 
#     def call(self, *args):
#         return _call(self.namespace, self.id, args, self.connection)
# 
# Path: nanpy/arduinoboard.py
# def arduinoobjectmethod(funct, *args, **kwargs):
#     def wrapper(self, *args, **kwargs):
#         call_pars = [funct.__name__]
#         call_pars.extend(args)
#         funct(self, *args, **kwargs)
#         connection = self.connection if hasattr(self, 'connection') else None
#         return _call(self.namespace, self.id, call_pars, connection=connection)
#     return wrapper
# 
# def returns(fconv):
#     def wrapf(func):
#         def wrapper(self, *args, **kwargs):
# #             try:
#                 return fconv(func(self, *args, **kwargs))
# #             except ValueError:
# #                 return -1
#         return wrapper
#     return wrapf


from nanpy.arduinoboard import ArduinoObject
from nanpy.arduinoboard import (arduinoobjectmethod, returns)

class TLC5947(ArduinoObject):
    cfg_h_name = 'USE_TLC5947'

    def __init__(self, boardTotal, clock, data, latch, connection=None):
        ArduinoObject.__init__(self, connection=connection)
        self.id = self.call('new', boardTotal, clock, data, latch)


# Path: nanpy/arduinoboard.py
# class ArduinoObject(object):
#     connection=None
# 
#     def __init__(self, connection=None):
#         self.namespace = self.__class__.__name__
#         self.id = 0
#         self.connection = connection
# 
#     def call(self, *args):
#         return _call(self.namespace, self.id, args, self.connection)
# 
# Path: nanpy/arduinoboard.py
# def arduinoobjectmethod(funct, *args, **kwargs):
#     def wrapper(self, *args, **kwargs):
#         call_pars = [funct.__name__]
#         call_pars.extend(args)
#         funct(self, *args, **kwargs)
#         connection = self.connection if hasattr(self, 'connection') else None
#         return _call(self.namespace, self.id, call_pars, connection=connection)
#     return wrapper
# 
# def returns(fconv):
#     def wrapf(func):
#         def wrapper(self, *args, **kwargs):
# #             try:
#                 return fconv(func(self, *args, **kwargs))
# #             except ValueError:
# #                 return -1
#         return wrapper
#     return wrapf


# Path: nanpy/TLC5947.py
from nanpy.arduinoboard import ArduinoObject
from nanpy.arduinoboard import (arduinoobjectmethod, returns)


class TLC5947(ArduinoObject):
    cfg_h_name = 'USE_TLC5947'

    def __init__(self, boardTotal, clock, data, latch, connection=None):
        ArduinoObject.__init__(self, connection=connection)
        self.id = self.call('new', boardTotal, clock, data, latch)


    @arduinoobjectmethod