Skip to content

Commit

Permalink
K修改为GB2312
Browse files Browse the repository at this point in the history
字库、菜单放入eeprom
  • Loading branch information
losehu committed Jan 17, 2024
1 parent 83c0655 commit 9aaea0d
Show file tree
Hide file tree
Showing 34 changed files with 27,713 additions and 14,689 deletions.
2 changes: 1 addition & 1 deletion .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

87 changes: 49 additions & 38 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed LOSEHU116.bin
Binary file not shown.
Binary file removed LOSEHU116K.bin
Binary file not shown.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ both:
$(RM) *.bin
$(MAKE) build ENABLE_CHINESE_FULL=0
$(MAKE) build ENABLE_CHINESE_FULL=4
$(MAKE) build ENABLE_CHINESE_FULL=4 ENABLE_GB2312=1


all:
Expand Down
26 changes: 16 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,25 @@
* **0x1FFF** MDC ID
* 0x1FF8~0x1FFC 侧键功能

**1Mib扩容版(K)**
* **0x02000~0x1E31C** 中文字库(三个字库大小为:40960、40960、33564),用hank999的小工具可写入
* **0x1E320~0x1E332** 开机字符1 ,**0x1E31E** 存放长度
* **0x1E333~0x1E345** 开机字符2 ,**0x1E31F** 存放长度
* **0x1E350~0X1E450** 开机画面,128(宽)*64 单色图
**2Mib扩容版(H)**
* **0x02000~0x26532** GB2312中文字库(共6763*22B)用hank999的小工具可写入
* **0x26540~0x26552** 开机字符1 ,**0x2653E** 存放长度
* **0x26553~0x26565** 开机字符2 ,**0x2653F** 存放长度
* **0x26570~0x26670** 开机画面,128(宽)*64 单色图


**扩容版(K、H)**
* **0x02000~0x02012** 开机字符1 ,**0x02024** 存放长度
* **0x02012~0x02024** 开机字符2 ,**0x02025** 存放长度
* **0x02080~0x02480** 开机画面,长度128(宽)*64/8=1024=0x400


* **0x02480~0x0255C** gFontBigDigits,长度11*20=220=0XDC
* **0x0255C~0x0267C** gFont3x5,长度96*3=288=0X120
* **0x0267C~0x028B0** gFontSmall,长度96*6=564=0X234
* **0x028B0~0x02B96** 菜单编码,长度53*14=742=0X2E6

**1Mib扩容版(K)**
* **0x02A00~0x1DDE6** GB2312中文字库(共6763*11*12/8=111590=0x1B3E6)用hank999的小工具可写入

**2Mib扩容版(H)**
* **0x02A00~0x26F32** GB2312中文字库(共6763*22=148786=0x24532)用hank999的小工具可写入

# 示例

<p float="left">
Expand Down
14 changes: 7 additions & 7 deletions app/action.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,9 @@ if (gCurrentFunction != FUNCTION_TRANSMIT && gCurrentFunction != FUNCTION_MONITO

static void ACTION_Scan_FM(bool bRestart)
{
if (FUNCTION_IsRx()) {
if (FUNCTION_IsRx())
return;
}


GUI_SelectNextDisplay(DISPLAY_FM);
gMonitor = false;
Expand All @@ -465,21 +465,21 @@ static void ACTION_Scan_FM(bool bRestart)
return;
}

uint16_t Frequency;
uint16_t freq;

if (bRestart) {
gFM_AutoScan = true;
gFM_ChannelPosition = 0;
FM_EraseChannels();
Frequency = gEeprom.FM_LowerLimit;
freq = gEeprom.FM_LowerLimit;
} else {
gFM_AutoScan = false;
gFM_ChannelPosition = 0;
Frequency = gEeprom.FM_FrequencyPlaying;
freq = gEeprom.FM_FrequencyPlaying;
}

BK1080_GetFrequencyDeviation(Frequency);
FM_Tune(Frequency, 1, bRestart);
BK1080_GetFrequencyDeviation(freq);
FM_Tune(freq, 1, bRestart);

#ifdef ENABLE_VOICE
gAnotherVoiceID = VOICE_ID_SCANNING_BEGIN;
Expand Down
Loading

0 comments on commit 9aaea0d

Please sign in to comment.