I2C.master

From Pinguino
Jump to: navigation, search

Name

I2C.master - Initialise i2c peripheral in master mode

Description

void I2C.master ( u16 bus_speed ) - (P8 Only)
Iniatialise i2c peripheral in master mode. Supported bus speed constants are:
I2C_100KHZ - 100Khz
I2C_400KHZ - 400Khz
I2C_1MHZ - 1 Mhz

Syntax

 I2C.master( bus_speed );
Parameters
bus_speed - i2c bus speed (100, 400 or 1000)
Returns/Output
None

Example

PCF8574 PCF8593 DS1307serial

Bugs

See Also

I2C.master is a short cut to I2C.init

I2C.init

Comments