示例#1
0
    def writeByte(self, data):
        """
        writeByte(Spi self, uint8_t data) -> int

        Parameters:
            data: uint8_t

        """
        return _mraa.Spi_writeByte(self, data)
示例#2
0
    def writeByte(self, data):
        """
        writeByte(Spi self, uint8_t data) -> int

        Parameters
        ----------
        data: uint8_t




        Write single byte to the SPI device

        Parameters:
        -----------

        data:  the byte to send

        data received on the miso line or -1 in case of error 
        """
        return _mraa.Spi_writeByte(self, data)
示例#3
0
 def writeByte(self, data):
     return _mraa.Spi_writeByte(self, data)