Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last 7 characters in LCD display not shown #10

Open
jcelerier opened this issue Dec 21, 2024 · 0 comments
Open

Last 7 characters in LCD display not shown #10

jcelerier opened this issue Dec 21, 2024 · 0 comments

Comments

@jcelerier
Copy link

jcelerier commented Dec 21, 2024

I'm sending a buffer with 112 x, except '\n' at positions 55 and 111: yet I am not seeing them in the last few characters

image

Here's my code in case it's something stupid:

  static auto update_lcd(std::string_view txt)
  {
    uint8_t buf[112] = {};
    for (int i = 0; i < std::min(int(std::ssize(txt)), 112); i++)
      buf[i] = charmap_lcd(txt[i]);
    buf[55] = '\n';
    buf[111] = '\n';
    
   // buf is then sent according to protocol
   ...
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant