旋转led灯源代码Word文档下载推荐.docx
- 文档编号:19163680
- 上传时间:2023-01-04
- 格式:DOCX
- 页数:24
- 大小:19.75KB
旋转led灯源代码Word文档下载推荐.docx
《旋转led灯源代码Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《旋转led灯源代码Word文档下载推荐.docx(24页珍藏版)》请在冰豆网上搜索。
ucharTime_S;
秒"
ucharTime_ms;
毫秒"
(0~49)(每过20ms,+1)
ucharTimer1_JSQ;
//指针定位
ucharH_Line;
//时针定位(0~179)
ucharM_Line;
//分针定位(0~179)
ucharS_Line;
//秒针定位(0~179)
ucharDisp_time_set;
//定时器赋初值
ucharDisp_buffer[10];
//标志位定义
bitT20ms_flag;
//20毫秒定时溢出标志(0=未溢出,1=溢出)
bitNew_disp_flag;
//显示刷新使能标志(0=禁止,1=使能)
ucharSET_EN_FLAG;
ucharDisp_mode;
ucharspeednow,speed;
uchark,l,m;
uintMode_J;
//显示段码表(模拟表盘)(7*7)
ucharcodeLED_TAB_12369[]=
{
0x8C,0x92,0xA2,0xC2,0x84,0x00,0xFE,//12正向//0
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7C,0x82,0x82,0xFC,0x80,0x82,0x7C,
//9左旋270度//3
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7C,0x92,0x92,0x92,0x92,0x92,0x4C,
//6左旋180度//2
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7C,0x82,0x2,0x1C,0x2,0x82,0x7C,
//3左旋90度//1
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,};
//数字字模显示段码表(8*8)
ucharcodeLED_TAB_A0[]=
//字符编号
0x7C,0x82,0x82,0x82,0x82,0x82,0x7C,0x00,//0//0
0x00,0x80,0x80,0xFE,0x84,0x80,0x00,0x00,//1//1
0x8C,0x92,0x92,0xA2,0xA2,0xC2,0xC4,0x00,//2//2
0x6C,0x92,0x92,0x92,0x82,0x82,0x44,0x00,//3//3
0x40,0x40,0xFE,0x44,0x48,0x50,0x60,0x00,//4//4
0x60,0x92,0x92,0x92,0x92,0x92,0x4E,0x00,//5//5
0x64,0x92,0x92,0x92,0x92,0x92,0x7C,0x00,//6//6
0x02,0x06,0x0A,0xF2,0x02,0x02,0x02,0x00,//7//7
0x6C,0x92,0x92,0x92,0x92,0x92,0x6C,0x00,//8//8
0x7C,0x92,0x92,0x92,0x92,0x92,0x4C,0x00,//9//9
0x00,0x00,0x00,0x28,0x00,0x00,0x00,0x00,//:
//10
0x04,0x0A,0x04,0x78,0x84,0x84,0x48,0x00,//℃//11
};
//符号字模显示段码表(8*16)
ucharcodenum1[]=
{
/*--文字:
0--*/
/*--宋体12;
此字体下对应的点阵为:
宽x高=8x16--*///上部
0xFF,0x1F,0xEF,0xF7,0xF7,0xEF,0x1F,0xFF,
1--*/
宽x高=8x16--*/
0xFF,0xFF,0xFF,0xFF,0x07,0xEF,0xEF,0xFF,
2--*/
0xFF,0x8F,0x77,0xF7,0xF7,0xF7,0x8F,0xFF,
3--*/
0xFF,0xCF,0x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,0x7B,0xFB,0xFB,0xFB,0x7B,0xBB,0xBB,0xBB,0x01,0xFF,0xFF,
0xFB,0xFB,0xFB,0xFB,0x1B,0xFB,0x03,0xFB,0xFB,0x03,0xDB,0x3B,0xFB,0xF3,0xFB,0xFF,
0xDD,0xDB,0x13,0xDF,0xDF,0xD7,0x19,0xDD,0xF3,0x0F,0xFF,0xFF,0x00,0xFF,0xFF,0xFF,
0xFF,0x00,0xFD,0xED,0xED,0xED,0xED,0x0D,0xED,0x6D,0x8D,0xED,0xFD,0x00,0xFF,0xFF,
0x00,0xFF,0xBF,0xDF,0x37,0xCF,0x3F,0xFD,0xFE,0x01,0xFF,0x7F,0xBF,0xC7,0xEF,0xFF,
0x00,0xFF,0xBF,0xDF,0x3E,0x7D,0x73,0x0F,0x7F,0x7F,0x01,0x7E,0x7E,0x7E,0x70,0xFF,
ucharcodedis_code1[19][16]=
{0x00,0x00,0
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 旋转 led 源代码