Skip to content

Commit

Permalink
背光
Browse files Browse the repository at this point in the history
  • Loading branch information
losehu committed Feb 2, 2025
1 parent dd2de52 commit 16f34ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ ENABLE_4732SSB =0
ENABLE_DOPPLER =1
ENABLE_TLE = 1
#############################################################
PACKED_FILE_SUFFIX = LOSEHU01D
PACKED_FILE_SUFFIX = LOSEHU132K
ifeq ($(ENABLE_PINYIN),1)
ENABLE_CHINESE_FULL=4
endif
Expand Down
9 changes: 7 additions & 2 deletions tle/tle.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Mode before_mode;

uint8_t local_selected=1;
uint8_t local_inflag=0;

uint8_t BACK_ON=1;
uint8_t switch_mode=0;
Mode mode=SELECT;
satlist sate_info;
Expand Down Expand Up @@ -1333,7 +1333,12 @@ void LOCAL_KEY()
}
void TLE_KEY()
{

if(my_kbd.current==KEY_SIDE2) {
if(BACK_ON)
PWM_PLUS0_CH0_COMP = 0<<2;
else PWM_PLUS0_CH0_COMP = 255<<2;
BACK_ON=1-BACK_ON;
}
if(mode==SATE||mode==SELECT
#ifdef ENABLE_PIC
|| mode==PIC
Expand Down

0 comments on commit 16f34ac

Please sign in to comment.