|
59 | 59 | *******************************************************************************/ |
60 | 60 |
|
61 | 61 | // You like to have CAT control (PC control) of the sketch via Serial link? |
62 | | -//#define CAT_CONTROL True |
| 62 | +#define CAT_CONTROL True |
63 | 63 |
|
64 | 64 | // Rotary and push control? |
65 | 65 | #define ROTARY True |
|
69 | 69 | #define ABUT True |
70 | 70 |
|
71 | 71 | // Memories? |
72 | | -//#define MEMORIES True // hard limited to 99 mems (~80 on the ATMEga168) |
| 72 | +#define MEMORIES True // hard limited to 99 mems (~80 on the ATMEga168) |
73 | 73 | // because we have only two spaces to represent that |
74 | 74 |
|
| 75 | +// Also you want to scan over enabled memories? |
| 76 | +#define MEM_SCAN True |
| 77 | + |
75 | 78 | // Smeter on the LCD? |
76 | 79 | #define SMETER True |
77 | 80 |
|
@@ -261,6 +264,14 @@ struct userData u; |
261 | 264 | // declaring the main configuration variable for mem storage |
262 | 265 | struct mmem memo; |
263 | 266 |
|
| 267 | + // some vars for the memory scan feature if defined |
| 268 | + #ifdef MEM_SCAN |
| 269 | + // general memscan flag |
| 270 | + bool mscan = true; |
| 271 | + #define MEM_SCAN_INTERVAL 5000; // in msecs, the time between scan jumps |
| 272 | + unsigned long scanTime; // counter against millis |
| 273 | + #endif |
| 274 | + |
264 | 275 | #else |
265 | 276 | // Analog buttons with single functions |
266 | 277 | Button bvfoab = Button(b1, &btnVFOABClick); |
@@ -297,14 +308,14 @@ struct userData u; |
297 | 308 | LiquidCrystal lcd(LCD_RS, LCD_E, LCD_D4, LCD_D5, LCD_D6, LCD_D7); |
298 | 309 |
|
299 | 310 | #ifdef SMETER |
300 | | - // how many samples we take in the smeter, we use a 2/3 trick to get some |
301 | | - // inertia and improve the look & feel of the bar |
| 311 | + // how many samples we take in the smeter, we use a 2/3 trick |
| 312 | + // to get some inertia and improve the look & feel of the bar |
302 | 313 | #define BARGRAPH_SAMPLES 6 |
303 | | - word pep[BARGRAPH_SAMPLES] = {}; // s-meter readings storage |
304 | | - boolean smeterOk = false; // it's ok to show the bar graph |
305 | | - word sMeter = 0; // hold the value of the Smeter readings |
306 | | - // in both RX and TX modes |
307 | | - boolean barReDraw = true; // Smeter bar needs to be redrawn |
| 314 | + word pep[BARGRAPH_SAMPLES] = {}; // s-meter readings storage |
| 315 | + boolean smeterOk = false; // it's ok to show the bar graph |
| 316 | + word sMeter = 0; // the value of the Smeter readings |
| 317 | + // in both RX and TX modes |
| 318 | + boolean barReDraw = true; // Smeter bar needs to be redrawn |
308 | 319 | #endif // smeter |
309 | 320 | #endif // nolcd |
310 | 321 |
|
|
0 commit comments