Display frequencies >=1GHz

This commit is contained in:
Krzysiek Egzmont
2023-10-18 20:43:02 +02:00
parent 13b41abce6
commit 2f7042056a
10 changed files with 88 additions and 152 deletions

View File

@@ -19,6 +19,7 @@
#include "ui/inputbox.h"
char gInputBox[8];
char inputBoxAscii[9];
uint8_t gInputBoxIndex;
void INPUTBOX_Append(const KEY_Code_t Digit)
@@ -33,3 +34,11 @@ void INPUTBOX_Append(const KEY_Code_t Digit)
gInputBox[gInputBoxIndex++] = (char)(Digit - KEY_0);
}
const char* INPUTBOX_GetAscii()
{
for(int i = 0; i < 8; i++) {
char c = gInputBox[i];
inputBoxAscii[i] = (c==10)? '-' : '0' + c;
}
return inputBoxAscii;
}