Red de conocimientos turísticos - Información de alquiler - Diseñe 59 contadores basados en 51 microcontroladores.
Diseñe 59 contadores basados en 51 microcontroladores.
#include?lt;reg51.hgt;
#define?uint?unsigned?int
#define?uchar?unsigned?char
uchar?a,b;
uchar?a1[]={0,0,0,0,0};
uchar?p>
uchar?a1[]={0, 0, 0, 0, 0};
uchar?code?sz[]={0x3f, 0x06, 0xdb, 0x4f,? , 0x07,
0x7f, 0x6f, 0x77, 0x7c,
0x39, 0x5e, 0x79, 0x71}?
uchar?code?wx[]= {0x00, 0xf7, 0xfb, 0xfd, 0xfe}?;
void?qf()?//Distinguir entre diez mil y cien mil
{ a1[1]=a10 ; a1[ 2]=(a/10)10; a1[3]=b10; a1[4]=(b/10)10;