合集-51单片机
摘要:点亮左上角点阵 #include <reg52.h> void main(void) { P0 = 0xFE; P1 = 0xE0; while (1); } 点亮第一排点阵 #include <reg52.h> void main(void) { P0 = 0x00; P1 = 0xE0; whi
阅读全文
摘要:250ms上移 #include <reg52.h> unsigned char code LedChar[] = { 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7 }; unsigned char code image[] = { 0xFF, 0xF
阅读全文
摘要:250ms左移 #include <reg52.h> unsigned char code LedChar[] = { 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7 }; unsigned char code image[30][8] = { { 0x
阅读全文