
51单片机
asty008
喜欢编程,网络和硬件
展开
-
DS1302和LCD1602整合长短按键电子钟
以下代码来自学习江科大自化协和手把手教你学51单片机后的整合。原创 2022-08-21 10:07:46 · 769 阅读 · 1 评论 -
8x8led点阵
#include <STC89C5xRC.H>/*-- 调入了一幅图像:这是您新建的图像 --*//*-- 宽度x高度=8x8 --*/unsigned char image[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x3C,0x18,0x18,0x18,0x18,0x18,0x18,0x3C, 0x00,0x66,0xFF,0xFF,0xF...原创 2021-04-03 13:01:40 · 1936 阅读 · 0 评论 -
按键扫描测试
#include <STC89C5xRC.H>unsigned char KeySta[3][4] = { {1,1,1,1}, {1,1,1,1}, {1,1,1,1} };unsigned char code LedChar[]={0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x7,0x7f,0x6f,0x3f,0x77,0x7C,0x39,0x5E,0x79,0x...原创 2021-03-27 17:18:23 · 255 阅读 · 0 评论 -
动态数码管秒计时
#include <STC89C5xRC.H>unsigned char code LedChar[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x7,0x7f,0x6f,0};unsigned char ledbuff[] = {0,0,0,0,0,0,0,0};unsigned int cnt = 0;unsigned long sec = 0;unsigned char i = 0;unsigned char d = 0;void m...原创 2021-03-17 22:43:06 · 687 阅读 · 0 评论