Usage of each block

日本語のページ

Initialize LCD

Initialize LCD

Initialize the character LCD display connected via I2C.
Specify the size (16 characters x 2 lines or 20 characters x 4 lines) and the I2C address.
Depending on the display, the I2C address is either 0x27 or 0x3f, so use an i2c scanner to find out the address in advance and specify that value.

Initialize LCD by specifying SDA/SCL

Initialize LCD while specifying SDA/SCL

Initialize a character LCD display connected via I2C on a microcontroller that does not have fixed SDA/SCL pin numbers.
Specify the size (16 characters x 2 lines or 20 characters x 4 lines), the I2C address, and the SDA/SCL pin numbers.
Depending on the display, the I2C address can be 0x27 or 0x3f, so check it in advance with an i2c scanner and specify that value.

Clear the display

Clear LCD

Clears the character display.

Specify cursor position

Set cursor position

Specify the cursor position when displaying characters on the character display.
The top left corner of the screen is the base (X=0/Y=0), and the further to the right/bottom the coordinates become larger.

Print string

Print string

Displays strings on the character display.