Text view with scrolling #2

Closed
opened 2020-09-07 23:47:43 +00:00 by kemonine · 2 comments
Owner

Setup a basic text view with scrolling support

Look at ring buffers ; this is likely what is appropriate

Use FIFO queue as back end for text to be displayed in a scrolling fashion

Should echo typed characters as well

Split on line width and new line

Setup a basic text view with scrolling support Look at ring buffers ; this is likely what is appropriate Use FIFO queue as back end for text to be displayed in a scrolling fashion Should echo typed characters as well Split on line width *and* new line
kemonine added the
help wanted
enhancement
labels 2020-09-07 23:47:50 +00:00
Author
Owner
const BBQ10Keyboard::KeyEvent key = keyboard.keyEvent();
    String state = "pressed";
    if (key.state == BBQ10Keyboard::StateLongPress)
      state = "held down";
    else if (key.state == BBQ10Keyboard::StateRelease)
      state = "released";
    pixels_wing.setPixelColor(0, pixels_wing.Color(0, 0, 255));
    pixels_wing.show(); 
  
    Serial.printf("key: '%c' (dec %d, hex %02x) %s\r\n", key.key, key.key, key.key, state.c_str());
    ```
``` const BBQ10Keyboard::KeyEvent key = keyboard.keyEvent(); String state = "pressed"; if (key.state == BBQ10Keyboard::StateLongPress) state = "held down"; else if (key.state == BBQ10Keyboard::StateRelease) state = "released"; pixels_wing.setPixelColor(0, pixels_wing.Color(0, 0, 255)); pixels_wing.show(); Serial.printf("key: '%c' (dec %d, hex %02x) %s\r\n", key.key, key.key, key.key, state.c_str()); ```
Author
Owner
https://github.com/rlogiacco/CircularBuffer
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kemonine/serial_debugger#2
No description provided.