Skip to content

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

Open
@bivanbi

Description

@bivanbi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions