Skip to content

Commit

Permalink
update lcd examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubberazer committed Nov 6, 2023
1 parent 7edd70a commit 31c3345
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions EXAMPLES_C++/lcd_i2c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,8 @@ 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[15] = {"Jetgpio"};
char message2[15] = {"by Rubberazer"};

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

send_command(lcd, LCD_SLAVE_ADDRESS, 0x80); //Positioning cursor at point 0,0
for (size_t i=0;i<strlen(message);i++){
Expand Down
5 changes: 2 additions & 3 deletions EXAMPLES_C/lcd_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ 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[15] = {"Jetgpio"};
char message2[15] = {"by Rubberazer"};

char message[16] = {"Jetgpio"};
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++){
Expand Down

0 comments on commit 31c3345

Please sign in to comment.