def frequency(self, mode):
        """
        frequency(I2c self, mraa_i2c_mode_t mode) -> mraa_result_t

        Parameters:
            mode: enum mraa_i2c_mode_t

        """
        return _mraa.I2c_frequency(self, mode)
示例#2
0
    def frequency(self, mode):
        """
        frequency(I2c self, mraa::I2cMode mode) -> mraa::Result

        Parameters:
            mode: enum mraa::I2cMode

        """
        return _mraa.I2c_frequency(self, mode)
示例#3
0
    def frequency(self, mode):
        """
        frequency(I2c self, mraa::I2cMode mode) -> mraa::Result

        Parameters
        ----------
        mode: enum mraa::I2cMode




        Sets the i2c Frequency for communication. Your board may not support
        the set frequency. Anyone can change this at any time and this will
        affect every slave on the bus

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

        mode:  Frequency to set the bus to

        Result of operation 
        """
        return _mraa.I2c_frequency(self, mode)
示例#4
0
 def frequency(self, mode):
     return _mraa.I2c_frequency(self, mode)