Skip to content

Inkplate2 text not displayed until text color is set, but text color command is not implemented in peripheral mode #266

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

Open
bivanbi opened this issue Feb 11, 2025 · 1 comment · May be fixed by #267

Comments

@bivanbi
Copy link

bivanbi commented Feb 11, 2025

Steps to reproduce:

  1. Load Inkplate2_Peripheral_Mode from InkplateLibrary examples
  2. clear display, add hello world text and display framebuffer via serial, eg.:
    #K(1)*
    #C("48454c4c4f20574f524c44")*
    #L(1)*
    
  3. Observer blank white screen after refresh

Workaround: Add text color command, e.g.:

            case 'H':
                // Set text and background color
                sscanf(s + 3, "%d,%d", &foreGroundColor, &backGroundColor);
                display.setTextColor(foreGroundColor, backGroundColor);
                break;

Then:

  1. clear display, set text color, add hello world text and display framebuffer via serial, eg.:
    #K(1)*
    #H(2,0)*
    #C("48454c4c4f20574f524c44")*
    #L(1)*
    
  2. Observe red 'HELLO WORLD' text on white background after refresh

Also the documentation lacks the setTextColor method:

Image

bivanbi added a commit to bivanbi/Inkplate-Arduino-library that referenced this issue Feb 11, 2025
Fixes SolderedElectronics#266

Without setting text color first, displayed text will be invisible.
Add setTextColor to Peripheral Mode to be able to set text color.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/SolderedElectronics/Inkplate-Arduino-library/issues/266?shareId=XXXX-XXXX-XXXX-XXXX).
@bivanbi bivanbi linked a pull request Feb 11, 2025 that will close this issue
@rsoric
Copy link
Contributor

rsoric commented Feb 18, 2025

Greetings @bivanbi ,

thank you for your contribution, we have half-completed a new Inkplate peripheral mode which should contain all these commands. We will however still review your PR regarding this and see if we can implement it to the existing example for Inkplate 2.

-Rob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants