0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-04-28 14:21:25 +03:00

panadapter clean up

This commit is contained in:
OneOfEleven 2023-11-20 13:28:14 +00:00
parent 88405681fd
commit 7a03bbcf64
3 changed files with 12 additions and 6 deletions

Binary file not shown.

Binary file not shown.

View File

@ -463,12 +463,18 @@ void big_freq(const uint32_t frequency, const unsigned int x, const unsigned int
// draw top center vertical marker (the VFO frequency) // draw top center vertical marker (the VFO frequency)
base_line[PANADAPTER_BINS - (LCD_WIDTH * 2)] = 0x3F; base_line[PANADAPTER_BINS - (LCD_WIDTH * 2)] = 0x3F;
// draw top horizontal dotted line { // draw top & bottom horizontal dotted line
const unsigned int top = PANADAPTER_BINS - (LCD_WIDTH * 2);
const unsigned int bot = PANADAPTER_BINS - (LCD_WIDTH * 0);
for (i = 0; i < PANADAPTER_BINS; i += 4) for (i = 0; i < PANADAPTER_BINS; i += 4)
{ {
const unsigned int k = PANADAPTER_BINS - (LCD_WIDTH * 2); // top line
base_line[k - i] |= 1u; base_line[top - i] |= 0x01;
base_line[k + i] |= 1u; base_line[top + i] |= 0x01;
// bottom line
base_line[bot - i] |= 0x20;
base_line[bot + i] |= 0x20;
}
} }
// draw the panadapter vertical bins // draw the panadapter vertical bins