示例#1
0
    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
示例#2
0
    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
示例#3
0
    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
示例#4
0
文件: mraa.py 项目: eiselekd/hw
    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
示例#5
0
    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
示例#6
0
 def __init__(self, *args):
     this = _mraa.new_Spi(*args)
     try:
         self.this.append(this)
     except __builtin__.Exception:
         self.this = this