Skip to content

Commit

Permalink
Merge pull request armel#17 from armel/feature_update
Browse files Browse the repository at this point in the history
Feature update
  • Loading branch information
armel authored Apr 23, 2024
2 parents 7d3343d + 3de36b1 commit 9cf3e5c
Show file tree
Hide file tree
Showing 14 changed files with 105 additions and 91 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ ifeq ($(ENABLE_FEAT_F4HWN),1)
VERSION_STRING_1 ?= v0.22

AUTHOR_STRING_2 ?= F4HWN
VERSION_STRING_2 ?= v2.5
VERSION_STRING_2 ?= v2.6

AUTHOR_STRING ?= $(AUTHOR_STRING_1)+$(AUTHOR_STRING_2)
VERSION_STRING ?= $(VERSION_STRING_2)
Expand Down
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Anyway, have fun.
# Donations

Special thanks to Jean-Cyrille F6IWW, Fabrice 14RC123, David F4BPP, Olivier 14RC206, Frédéric F4ESO, Stéphane F5LGW, Jorge Ornelas, Laurent F4AXK, Christophe Morel, Clayton W0LED, Pierre Antoine F6FWB and Jean-Claude 14FRS3306 for their [donations](https://www.paypal.com/paypalme/F4HWN). That’s so kind of them. Thanks so much 🙏🏻
Special thanks to Jean-Cyrille F6IWW, Fabrice 14RC123, David F4BPP, Olivier 14RC206, Frédéric F4ESO, Stéphane F5LGW, Jorge Ornelas, Laurent F4AXK, Christophe Morel, Clayton W0LED, Pierre Antoine F6FWB, Jean-Claude 14FRS3306 and Thierry F4GVO for their [donations](https://www.paypal.com/paypalme/F4HWN). That’s so kind of them. Thanks so much 🙏🏻

## Table of Contents

Expand All @@ -42,8 +42,8 @@ Special thanks to Jean-Cyrille F6IWW, Fabrice 14RC123, David F4BPP, Olivier 14RC
* improve default power settings level (Low ~125mW, Mid ~2W and High ~5W),
* improve s-meter (IARU recommandations),
* improve UI:
* menu index,
* s-meter design,
* menu index is always visible, even if a menu is selected,
* s-meter new design (Classic or Tiny),
* MAIN ONLY screen mode,
* DUAL and CROSS screen mode,
* RX blink on VFO RX,
Expand All @@ -53,6 +53,9 @@ Special thanks to Jean-Cyrille F6IWW, Fabrice 14RC123, David F4BPP, Olivier 14RC
* CTCSS or DCS value,
* KeyLock message,
* last RX,
* move BatTxt menu from 34/63 to 30/63 (just after BatSave menu 29/63),
* rename BackLt to BLTime,
* rename BltTRX to BLTxRx,
* and more...
* new menu entries:
* add SetLow menu to set low power (<20mW, 125mW, 250mW, 500mW and 1W),
Expand All @@ -71,12 +74,14 @@ Special thanks to Jean-Cyrille F6IWW, Fabrice 14RC123, David F4BPP, Olivier 14RC
* improve status bar,
* add SetPtt mode in status bar,
* change font and bitmaps,
* move USB icon to left of battery information,
* add RX and TX timers,
* new actions:
* SWITCH RxMode,
* SWITCH PTT,
* SWITCH WIDE NARROW,
* 1750Hz,
* BlMin Tmp Pff,
* BlMin Tmp Off,
* new key combinations:
* add the F + UP or F + DOWN key combination to dynamically change the Squelch level,
* add the F + F1 or F + F2 key combination to dynamically change the Step,
Expand Down
2 changes: 2 additions & 0 deletions app/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ static void processFKeyFunction(const KEY_Code_t Key, const bool beep)

//SETTINGS_SaveChannel(channel, gEeprom.RX_VFO, gRxVfo, 1);

gRequestSaveChannel = 1;

gUpdateDisplay = true;
}
#endif
Expand Down
Binary file added archive/f4hwn.packed.v2.6.bin
Binary file not shown.
Binary file added archive/f4hwn.packed.v2.6.fixed.bin
Binary file not shown.
14 changes: 2 additions & 12 deletions bitmaps.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@ const uint8_t gFontPowerSave[2][6] =
{0x00, 0x26, 0x49, 0x49, 0x49, 0x32},
};

const uint8_t gFontTx[1][5] =
{
{0x3, 0x1, 0x7f, 0x1, 0x3},
};

const uint8_t gFontRx[1][5] =
{
{0x7f, 0x9, 0x19, 0x29, 0x46},
};

const uint8_t gFontPttOnePush[2][6] =
{
{0x00, 0x3e, 0x41, 0x41, 0x41, 0x3e},
Expand All @@ -39,9 +29,9 @@ const uint8_t gFontFM[2][6] =
{0x00, 0x7f, 0x2, 0x1c, 0x2, 0x7f},
};

const uint8_t gFontKeyLock[1][8] =
const uint8_t gFontKeyLock[1][9] =
{
{0x7c, 0x46, 0x45, 0x45, 0x45, 0x45, 0x46, 0x7c}
{0x7c, 0x46, 0x45, 0x45, 0x45, 0x45, 0x45, 0x46, 0x7c}
};

const uint8_t gFontScanAll[9] =
Expand Down
4 changes: 1 addition & 3 deletions bitmaps.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
#include <stdint.h>

extern const uint8_t gFontPowerSave[2][6];
extern const uint8_t gFontTx[1][5];
extern const uint8_t gFontRx[1][5];
extern const uint8_t gFontPttOnePush[2][6];
extern const uint8_t gFontPttClassic[2][6];
extern const uint8_t gFontFM[2][6];
extern const uint8_t gFontKeyLock[1][8];
extern const uint8_t gFontKeyLock[1][9];
extern const uint8_t gFontScanAll[9];
extern const uint8_t gFontLight[9];

Expand Down
1 change: 1 addition & 0 deletions functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ void FUNCTION_Transmit()
AUDIO_AudioPathOn();
gEnableSpeaker = true;

gVfoConfigureMode = VFO_CONFIGURE;
return;
}
#endif
Expand Down
1 change: 1 addition & 0 deletions misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ volatile bool gTxTimeoutReached;
volatile uint16_t gTxTimerCountdownAlert_500ms;
volatile bool gTxTimeoutReachedAlert;
volatile uint16_t gTxTimeoutToneAlert = 800;
volatile uint16_t gRxTimerCountdown_500ms;
#endif

volatile uint16_t gTailNoteEliminationCountdown_10ms;
Expand Down
1 change: 1 addition & 0 deletions misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ extern volatile bool gTxTimeoutReached;
extern volatile uint16_t gTxTimerCountdownAlert_500ms;
extern volatile bool gTxTimeoutReachedAlert;
extern volatile uint16_t gTxTimeoutToneAlert;
extern volatile uint16_t gRxTimerCountdown_500ms;
#endif

extern volatile uint16_t gTailNoteEliminationCountdown_10ms;
Expand Down
1 change: 1 addition & 0 deletions scheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ void SystickHandler(void)

#ifdef ENABLE_FEAT_F4HWN
DECREMENT_AND_TRIGGER(gTxTimerCountdownAlert_500ms - ALERT_TOT * 2, gTxTimeoutReachedAlert);
DECREMENT(gRxTimerCountdown_500ms);
#endif

DECREMENT_AND_TRIGGER(gTxTimerCountdown_500ms, gTxTimeoutReached);
Expand Down
12 changes: 6 additions & 6 deletions ui/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ center_line_t center_line = CENTER_LINE_NONE;

bool isMainOnlyInputDTMF = false;

static int16_t map(int16_t x, int16_t in_min, int16_t in_max, int16_t out_min, int16_t out_max) {
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}

static bool isMainOnly(bool checkGui)
{
if(checkGui)
Expand Down Expand Up @@ -252,12 +256,6 @@ void UI_DisplayAudioBar(void)
}
#endif

#ifdef ENABLE_FEAT_F4HWN
static int16_t map(int16_t x, int16_t in_min, int16_t in_max, int16_t out_min, int16_t out_max) {
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}
#endif

void DisplayRSSIBar(const bool now)
{
#if defined(ENABLE_RSSI_BAR)
Expand Down Expand Up @@ -800,6 +798,8 @@ void UI_DisplayMain(void)
#ifdef ENABLE_FEAT_F4HWN
else
{
gRxTimerCountdown_500ms = 7200;

if(RxOnVfofrequency == frequency && !isMainOnly(false))
{
UI_PrintStringSmallNormal(">>", 14, 0, line);
Expand Down
16 changes: 9 additions & 7 deletions ui/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,17 @@ const t_menu_item MenuList[] =
{"KeyLck", MENU_AUTOLK }, // was "AUTOLk"
{"TxTOut", MENU_TOT }, // was "TOT"
{"BatSav", MENU_SAVE }, // was "SAVE"
{"BatTxt", MENU_BAT_TXT },
{"Mic", MENU_MIC },
#ifdef ENABLE_AUDIO_BAR
{"MicBar", MENU_MIC_BAR },
#endif
{"ChDisp", MENU_MDF }, // was "MDF"
{"POnMsg", MENU_PONMSG },
{"BatTxt", MENU_BAT_TXT },
{"BackLt", MENU_ABR }, // was "ABR"
{"BLTime", MENU_ABR }, // was "ABR"
{"BLMin", MENU_ABR_MIN },
{"BLMax", MENU_ABR_MAX },
{"BltTRX", MENU_ABR_ON_TX_RX },
{"BLTxRx", MENU_ABR_ON_TX_RX },
{"Beep", MENU_BEEP },
#ifdef ENABLE_VOICE
{"Voice", MENU_VOICE },
Expand Down Expand Up @@ -516,10 +516,7 @@ void UI_DisplayMenu(void)
}

// draw the menu index number/count
#ifdef ENABLE_FEAT_F4HWN
sprintf(String, "%02u/%u", 1 + gMenuCursor, gMenuListCount);
UI_PrintStringSmallNormal(String, 6, 0, 6);
#else
#ifndef ENABLE_FEAT_F4HWN
sprintf(String, "%2u.%u", 1 + gMenuCursor, gMenuListCount);
UI_PrintStringSmallNormal(String, 2, 0, 6);
#endif
Expand All @@ -530,6 +527,11 @@ void UI_DisplayMenu(void)
UI_PrintString(MenuList[menu_index].name, 0, 0, 0, 8);
// UI_PrintStringSmallNormal(String, 0, 0, 0);
}

#ifdef ENABLE_FEAT_F4HWN
sprintf(String, "%02u/%u", 1 + gMenuCursor, gMenuListCount);
UI_PrintStringSmallNormal(String, 6, 0, 6);
#endif
}
#endif

Expand Down
Loading

0 comments on commit 9cf3e5c

Please sign in to comment.