mirror of
https://github.com/firewalkwithm3/qmk_firmware.git
synced 2024-11-22 11:30:30 +08:00
format code according to conventions [skip ci]
This commit is contained in:
parent
833c5ae87a
commit
2306c974e5
|
@ -430,16 +430,16 @@ void oled_write_ln(const char *data, bool invert) {
|
||||||
|
|
||||||
void oled_pan(bool left) {
|
void oled_pan(bool left) {
|
||||||
uint16_t i = 0;
|
uint16_t i = 0;
|
||||||
for (uint16_t y = 0; y < OLED_DISPLAY_HEIGHT/8; y++) {
|
for (uint16_t y = 0; y < OLED_DISPLAY_HEIGHT / 8; y++) {
|
||||||
if(left) {
|
if (left) {
|
||||||
for (uint16_t x = 0; x < OLED_DISPLAY_WIDTH - 1; x++) {
|
for (uint16_t x = 0; x < OLED_DISPLAY_WIDTH - 1; x++) {
|
||||||
i = y * OLED_DISPLAY_WIDTH + x;
|
i = y * OLED_DISPLAY_WIDTH + x;
|
||||||
oled_buffer[i] = oled_buffer[i+1];
|
oled_buffer[i] = oled_buffer[i + 1];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (uint16_t x = OLED_DISPLAY_WIDTH -1; x > 0; x--) {
|
for (uint16_t x = OLED_DISPLAY_WIDTH - 1; x > 0; x--) {
|
||||||
i = y * OLED_DISPLAY_WIDTH + x;
|
i = y * OLED_DISPLAY_WIDTH + x;
|
||||||
oled_buffer[i] = oled_buffer[i-1];
|
oled_buffer[i] = oled_buffer[i - 1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue