📄 include.h
字号:
#ifndef _include_h_
#define _include_h_
#include <iom128v.h>
#include <macros.h>
//参数声明:
//时间周期
#define TIME_TICK 80
//版本号:1:2007.01.31
#define VER_PRG 1
#define VER_PRG1 1
#define DEFA_BRIGHTNESS 21<<2
//18<<2
//(V11的默认值)
#define DEFA_CHROMA 61<<2
//25<<2
//(V11的默认值)
#define DEFA_CONSTRAST 43<<2
//54<<2
// (V11的默认值)
//模式1
/*
*/
//KEY DEFINE
#define KEY1_PORT PORTG
#define KEY1_PIN PING
#define KEY1_BIT 3
#define KEY2_PORT PORTB
#define KEY2_PIN PINB
#define KEY2_BIT 7
#define KEY3_PORT PORTB
#define KEY3_PIN PINB
#define KEY3_BIT 6
#define UD_PORT PORTB
#define UD_PIN PINB
#define UD_BIT 6
#define LED1_PORT PORTA
#define LED1_BIT 3
#define LED2_PORT PORTA
#define LED2_BIT 2
#define RSTT103_DDR DDRE
#define RSTT103_PORT PORTE
#define RSTT103 2
//LED ON/OFF
#define LED1_ON LED1_PORT&=~(1<<LED1_BIT)
#define LED1_OFF LED1_PORT|=(1<<LED1_BIT)
#define LED2_ON LED2_PORT&=~(1<<LED2_BIT)
#define LED2_OFF LED2_PORT|=(1<<LED2_BIT)
#define LED2_INV LED2_PORT^=(1<<LED2_BIT)
#define MEUNLINE_MAX 4
#define BACKLIGHT_ON PORTG|=0X01;
#define BACKLIGHT_OFF PORTG&=~0X01;
#define kh PORTG|=0X8
#define kl PORTG&=~0X8
#define CONFIGDATA_MAX 10
extern unsigned char user_config[CONFIGDATA_MAX];
//user_config[]=
// 0:保留
// 1:NTSC_PAL模式
//#define CUR_MOD 1
// 0:亮 度 :PAGE0:69H:_BRIGHTNESS ADJUST
#define BRIGHTNESS 0
// 1:色度 :PAGE0:6CH:_CHROMA ADJUST
#define CHROMA 1
// 2:对比度 :PAGE0:68H:_CONTRAST ADJUST
#define CONSTRAST 2
// 3:背光亮度:PAGE0:E9H:_PWM参考E8,E9寄存器
#define PWM 3
#define RESET_DEF 3
// 6:左右移动:PAGE1:2BH:_STH
#define sth_pos 6
// 7:上下移动:PAGE1:35H:_STH
#define stv_offset 7
#define gm0 8
#define gm1 9
#define gm2 10
#define gm3 11
#define gm4 12
#define gm5 13
#define gm6 14
#define gm7 15
#define gm8 16
extern unsigned char osdstyle;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -