pub fn transpose_single_display_data(
data: &SingleDisplayData
) -> SingleDisplayData
Expand description
This does a transpose operation on the SingleDisplayData
-Matrix and is a helper function for
remove_gaps_in_display_text
. Cols become rows and rows become cols.
Example:
let _ = [
0b10000000,
0b10000000,
0b10000000,
0b10000000,
0b10000000,
0b10000000,
0b10000000,
0b10000000,
0b10000000,
];
becomes
let _ = [
0b11111111,
0,
0,
0,
0,
0,
0,
0,
];