led.c
来自「芯片at89s52」· C语言 代码 · 共 29 行
C
29 行
/******************************************************************************
* File Name: led.c *
* Create Time: 2007/07/14 *
* Description: *
* Copyright : *
* History : *
* |---Data---|---Author---|--Version--|--------------Description-------------|
*****************************************************************************/
/******************************
* Head File *
*****************************/
#include"led.h"
/******************************
* Global Variable *
*****************************/
uchar disbit = 0;//用以计数片选位
uchar DisMem[8]; //显示内容缓冲区
/******************************
* Const Segment *
*****************************/
// 0 1 2 3 4 5 6 7 8 9
code const uchar dis_data[16] = {0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,
//a b c d e f
0x77,0x7c,0x39,0x5e,0x79,0x71};
//低位---------------------------->高位
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?