def __init__(self, *args): """ __init__(mraa::Spi self, int bus) -> Spi Parameters ---------- bus: int __init__(mraa::Spi self, int bus, int cs) -> Spi Parameters ---------- bus: int cs: int Spi Constructor, takes a pointer to a SPI context and initialises the SPI class Parameters: ----------- void: * to SPI context """ this = _mraa.new_Spi(*args) try: self.this.append(this) except __builtin__.Exception: self.this = this
def __init__(self, bus): """ __init__(mraa::Spi self, int bus) -> Spi Parameters: bus: int """ this = _mraa.new_Spi(bus) try: self.this.append(this) except: self.this = this
def __init__(self, *args): """ __init__(mraa::Spi self, int bus) -> Spi Parameters ---------- bus: int __init__(mraa::Spi self, int bus, int cs) -> Spi Parameters ---------- bus: int cs: int """ this = _mraa.new_Spi(*args) try: self.this.append(this) except Exception: self.this = this
def __init__(self, *args): this = _mraa.new_Spi(*args) try: self.this.append(this) except __builtin__.Exception: self.this = this