added option button for view_config, default to SPCTR (spectrum), clear screen between changes, color gradient

This commit is contained in:
GullCode 2023-04-07 11:30:28 +02:00
parent c3971cae32
commit 12cfbf70f0
2 changed files with 36 additions and 9 deletions

View file

@ -93,14 +93,14 @@ namespace ui
ChannelSpectrumFIFO* fifo { nullptr };
uint8_t max_power = 0;
int32_t steps = 250 ; // default of 250 Mhz steps
bool live_frequency_view = true ;
bool live_frequency_view = false ;
Labels labels{
{{0, 0}, "MIN: MAX: LNA VGA ", Color::light_grey()},
{{0, 1 * 16}, " RANGE: FILTER: AMP:", Color::light_grey()},
{{0, 2 * 16}, "PRESET:", Color::light_grey()},
{{0, 3 * 16}, "MARKER: MHz +/- MHz", Color::light_grey()},
{{0, 4 * 16}, "RESOLUTION: STEPS:", Color::light_grey()}
{{0, 4 * 16}, "RESOLUTION: STEPS:", Color::light_grey()}
};
NumberField field_frequency_min {
@ -132,7 +132,7 @@ namespace ui
""};
OptionsField steps_config{
{ 22 * 8, 4 * 16},
{ 21 * 8, 4 * 16},
4,
{
{"1", 1},
@ -140,7 +140,14 @@ namespace ui
{"100", 100},
{"250", 250},
{"500", 500},
{"1000", 1000},
}};
OptionsField view_config{
{25 * 8, 4 * 16},
5,
{
{"SPCTR", false },
{"LVL-V", true },
}};
OptionsField filter_config{