홍익인간 프로젝트/Arduino C
setI2CAddress U8G2
remoted
2020. 12. 1. 01:49
728x90
setI2CAddress
- C++/Arduino Prototype:
void U8G2::setI2CAddress(uint8_t adr)
- C Prototype:
void u8g2_SetI2CAddress(u8g2_t *u8g2, uint8_t adr)
- Description: By default, U8g2 assumes the lowest possible I2C address of the display. This procedure will assign the I2C address to u8g2, if the display is configured to a different address. Call this procedure before begin().
- Arguments:
- u8g2: A pointer to the u8g2 structure.
- adr: I2C address multiplied with 2 (the lowest bit must be zero)
- Returns: -
- See also: begin
- Note: This procedure is available with U8g2 v2.6.x