Change the I2C address

Description

  Change I2C address when serial port set at I2C mode, the new address will be saved in display even power off.

Note: must avoid the same address with others in a same net

Usage:

Direct:

"SI2CAa"

Arduino:

void setI2CAddress(uint8_t a)

C:

void Digole_setI2CAddress(uint8_t a)

Parameters:

a

The byte of new I2C address. Must between 1 and 127.

Return:

none

Example (Arduino):

mydisp.setI2CAddress(0x30);  //set I2C address to 0x30, only work when display set at I2C mode

Example(direct)

serial.writeString("SI2CA\x30"); //string format, set baud rate to 115200

Changelog

Version Description
   

See Also