MySensors Library & Examples  2.3.2
Variables
I2C constants

Detailed Description

Two Wire Interface library.

Variables

const uint8_t I2C_CONTINUE = 0
 
const uint8_t I2C_STOP = 1
 
const uint8_t I2C_REP_START = 2
 
const uint8_t I2C_100KHZ = 0
 
const uint8_t I2C_400KHZ = 1
 
const uint8_t I2C_READ = 1
 
const uint8_t I2C_WRITE = 0
 
const uint8_t I2C_NO_PULLUPS = 0
 
const uint8_t I2C_INTERNAL_PULLUPS = 1
 

Variable Documentation

◆ I2C_100KHZ

const uint8_t I2C_100KHZ = 0

Set I2C bus speed to 100 kHz. Used by TwiMaster class.

Definition at line 45 of file I2cConstants.h.

◆ I2C_400KHZ

const uint8_t I2C_400KHZ = 1

Set I2C bus speed to 400 kHz. Used by TwiMaster class.

Definition at line 48 of file I2cConstants.h.

◆ I2C_CONTINUE

const uint8_t I2C_CONTINUE = 0

Option argument for transfer() of transferContinue() to continue a an I2C operation.

Definition at line 34 of file I2cConstants.h.

◆ I2C_INTERNAL_PULLUPS

const uint8_t I2C_INTERNAL_PULLUPS = 1

Enable internal pull-ups on SDA and SCL. Used by TwiMaster class.

Definition at line 60 of file I2cConstants.h.

◆ I2C_NO_PULLUPS

const uint8_t I2C_NO_PULLUPS = 0

Disable internal pull-ups on SDA and SCL. Used by TwiMaster class.

Definition at line 57 of file I2cConstants.h.

◆ I2C_READ

const uint8_t I2C_READ = 1

Bit to OR with address for a read operation.

Definition at line 51 of file I2cConstants.h.

◆ I2C_REP_START

const uint8_t I2C_REP_START = 2

Option argument for transfer() of transferContinue() to end a transfer with a repeated START condition

Definition at line 42 of file I2cConstants.h.

◆ I2C_STOP

const uint8_t I2C_STOP = 1

Option argument for transfer() of transferContinue() to end a transfer with a STOP condition

Definition at line 38 of file I2cConstants.h.

◆ I2C_WRITE

const uint8_t I2C_WRITE = 0

Bit to OR with address for write operation.

Definition at line 54 of file I2cConstants.h.