基于51单片机数码管的动态显示0~F

文章正文
发布时间:2024-10-08 06:13

本文禁止转载: 分共阴极还是共阳极 分带小数点还是不带小数点的 (1)共阳极不带小数点: unsigned char table[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e}; (2)共阳极带小数点: {0x40,0x79,0x24,0x30,0x19,0x12,0x02,0x78,0x00,0x10,0x08,0x03,0x46,0x21,0x06,0x0e};