Skip to content

Commit

Permalink
Update lcd_i2c.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubberazer authored Nov 6, 2023
1 parent ec58b46 commit a5b87c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EXAMPLES_C/lcd_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ int main(int argc, char *argv[]){
//Now can start writing to the lcd screen, starting at position 0,0 first line ot the left

char message[16] = {"Jetgpio"};
char message2[16] = {"by Rubberazer"};
char message2[16] = {" by Rubberazer"};

send_command(lcd, LCD_SLAVE_ADDRESS, 0x80); //Positioning cursor at point 0,0
for (int i=0;i<strlen(message);i++){
send_data(lcd, LCD_SLAVE_ADDRESS, message[i]);
}

send_command(lcd, LCD_SLAVE_ADDRESS, 0xC1); //Positioning cursor at second line
send_command(lcd, LCD_SLAVE_ADDRESS, 0xC0); //Positioning cursor at second line
for (int i=0;i<strlen(message2);i++){
send_data(lcd, LCD_SLAVE_ADDRESS, message2[i]);
}
Expand Down

0 comments on commit a5b87c9

Please sign in to comment.