You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MCU/other hardware in use: Seeeduino XIAO RP2040 with expansion board
Display resolution and interface: I2C, 128x64
Description of the problem/feature request/other
When TerminalMode and Rotation90 or Rotation270 is used, writing a new line of text results in the first character being written to the first line of the display, with the remainder of the text for the same line displayed on a later, but expected, line. After writing the eighth line, attempts to write the ninth line trigger a panic, possibly because the first character of the ninth line would (incorrectly) need to be written off screen.
Test case (if applicable)
A sample reproducer using rp2040-hal is provided in plm/ssd1306-rotation-panic, with the relevant lines below.
let i2c = ...// omitted for brevity
let mut display = I2CDisplayInterface::new(i2c),DisplaySize128x64,DisplayRotation::Rotate270,).into_terminal_mode();if display.init().is_ok() && display.clear().is_ok(){let _ = writeln!(display,"INIT OK");loop{for count in0..u8::MAX{let _ = writeln!(display,"{}TEST", count);// panics on count == 7}}}
Expected display output, which should repeat indefinitely:
INIT OK
0TEST
1TEST
2TEST
3TEST
4TEST
5TEST
6TEST
7TEST
Actual display output, which panics when writing the eighth test line:
I0123456
TEST
TEST
TEST
TEST
TEST
TEST
TEST
The text was updated successfully, but these errors were encountered:
ssd1306
in use (if applicable): 0.8.1Description of the problem/feature request/other
When
TerminalMode
andRotation90
orRotation270
is used, writing a new line of text results in the first character being written to the first line of the display, with the remainder of the text for the same line displayed on a later, but expected, line. After writing the eighth line, attempts to write the ninth line trigger a panic, possibly because the first character of the ninth line would (incorrectly) need to be written off screen.Test case (if applicable)
A sample reproducer using
rp2040-hal
is provided in plm/ssd1306-rotation-panic, with the relevant lines below.Expected display output, which should repeat indefinitely:
Actual display output, which panics when writing the eighth test line:
The text was updated successfully, but these errors were encountered: