0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-05-02 16:21:24 +03:00

README.md

This commit is contained in:
OneOfEleven 2023-09-14 20:43:02 +01:00
parent 89d313c7aa
commit 494faf5cee
2 changed files with 32 additions and 23 deletions

View File

@ -11,22 +11,24 @@ Am amazing achievement if you ask me !
This version you can customize at compile time by making various changes to the makefile.
You can edit those changes by (currently) editing the MakeFile, look for these lines at the top of the file ..
* ENABLE_AIRCOPY := 0
* ENABLE_FMRADIO := 0 FM band 2 RX
* ENABLE_OVERLAY := 1
* ENABLE_UART := 1 without this you ENABLE_TAIL_CTCSS_PHASE_SHIFTcan't configure the radio with your PC
* ENABLE_NOAA := 0 NOAA channels
* ENABLE_VOICE := 0 strange voices
* ENABLE_ALARM := 0 TX alarms
* ENABLE_BIG_FREQ := 0 big font for the frequencies
* ENABLE_KEEP_MEM_NAME := 1 maintain the channel name when (re)saving a memory channel
* ENABLE_CHAN_NAME_FREQ := 1 show the channel frequency below the channel name/number
* ENABLE_WIDE_RX := 1 enable the RX in the full 18MHz to 1300MHz (though frontend is not tuned for full range)
* ENABLE_TX_WHEN_AM := 0 allow TX when RX set to AM
* ENABLE_CTCSS_TAIL_PHASE_SHIFT := 1 use CTCSS tail phase shift rather than QS's 55Hz tone method
* ENABLE_MAIN_KEY_HOLD := 1 keys 0-9 can be held down to bypass having to press the F-key
* #ENABLE_SINGLE_VFO_CHAN := 1 not yet implemented
* #ENABLE_BAND_SCOPE := 1 not yet implemented
```
ENABLE_AIRCOPY := 0 easier to just type frequency in
ENABLE_FMRADIO := 0 FM band 2 RX
ENABLE_OVERLAY := 1
ENABLE_UART := 1 without this you can't configure the radio with your PC
ENABLE_NOAA := 0 NOAA channels
ENABLE_VOICE := 0 strange voices
ENABLE_ALARM := 0 TX alarms
ENABLE_BIG_FREQ := 0 big font for the frequencies
ENABLE_KEEP_MEM_NAME := 1 maintain the channel name when (re)saving a memory channel
ENABLE_CHAN_NAME_FREQ := 1 show the channel frequency below the channel name/number
ENABLE_WIDE_RX := 1 enable the RX in the full 18MHz to 1300MHz (though frontend is not tuned for full range)
ENABLE_TX_WHEN_AM := 0 allow TX when RX set to AM
ENABLE_CTCSS_TAIL_PHASE_SHIFT := 1 use CTCSS tail phase shift rather than QS's 55Hz tone method
ENABLE_MAIN_KEY_HOLD := 1 keys 0-9 can be held down to bypass having to press the F-key
#ENABLE_SINGLE_VFO_CHAN := 1 not yet implemented
#ENABLE_BAND_SCOPE := 1 not yet implemented
```
To enable the custom option, set the above option to '1'

View File

@ -235,10 +235,10 @@ static void MAIN_Key_DIGITS(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
{
if (gScreenToDisplay == DISPLAY_MAIN)
{ // we're going to go straight to the 0-9 key function
// without the F-key first being pressed
// without the need of the F-key
if (gInputBoxIndex > 0)
{ // delete any inputted chars
gInputBoxIndex = 0;
gInputBoxIndex = 0;
gRequestDisplayScreen = DISPLAY_MAIN;
}
gWasFKeyPressed = false;
@ -251,11 +251,18 @@ static void MAIN_Key_DIGITS(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
return;
}
if (bKeyPressed)
{ // key is pressed
gBeepToPlay = BEEP_1KHZ_60MS_OPTIONAL; // beep when key is pressed
return; // don't use the key till it's released
}
#ifdef ENABLE_MAIN_KEY_HOLD
if (bKeyPressed)
{ // key is pressed
gBeepToPlay = BEEP_1KHZ_60MS_OPTIONAL; // beep when key is pressed
return; // don't use the key till it's released
}
#else
if (!bKeyPressed)
return;
gBeepToPlay = BEEP_1KHZ_60MS_OPTIONAL;
#endif
if (!gWasFKeyPressed)
{ // F-key wasn't pressed