⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 16311.h

📁 单片机键值测定程序
💻 H
字号:
#ifndef _16311_H_
#define _16311_H_

#define _16311_DA P1_5
#define _16311_CK P1_4
#define _16311_ST P1_3

#define REM_PIN P3_2





//------------16311 command1(display mode settings)---------

#define _16311_display_mode_command_8G20S  0x00
#define _16311_display_mode_command_9G19S  0x08
#define _16311_display_mode_command_10G18S  0x09
#define _16311_display_mode_command_11G17S  0x0A
#define _16311_display_mode_command_12G16S  0x0B
#define _16311_display_mode_command_13G15S  0x0C
#define _16311_display_mode_command_14G14S  0x0D
#define _16311_display_mode_command_15G13S  0x0E
#define _16311_display_mode_command_16G12S  0x0F

//------------16311 command2---------
#define _16311_read_key_command1 0x46  //单扫
#define _16311_read_sw_command  0x47
#define _16311_write_led_command  0x41
#define _16311_write_dispaly_command  0x40
#define _16311_read_key_comend2 0x42   //连扫

//-----------16311 command3 (address setting)---------------

//??

//----------16311 command4 (display control)----------------

#define _16311_display_1G16S   0x88
#define _16311_display_2G16S   0x89
#define _16311_display_4G16S   0x8A
#define _16311_display_10G16S   0x8B
#define _16311_display_11G16S   0x8C
#define _16311_display_12G16S   0x8D
#define _16311_display_13G16S   0x8E
#define _16311_display_14G16S   0x8F

#define _16311_display_OFF  0x80

//----------------------------------------------------------


//extern void _16311_DA_send();
//static uint TEMP_KEY

#define uchar unsigned char
#define uint unsigned int





#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -