i2c.writeBits (METH)ΒΆ

METHOD writeBits : BOOL

This method is used to modify single bits of one register.

InOut:

Scope

Name

Type

Comment

Return

writeBits

BOOL

TRUE if successful

Input

usiRegister

USINT

register

usiFirstBit

USINT

highest value bit to write (0..7)

usiLength

USINT

number of bits to write (1..usiFirstBit+1)

usiValue

USINT

value of the bits to set (0..2^usiLength-1)