📄 number.c
字号:
#define NUMBER_C
#include "includes.h"
void process(unsigned long i,unsigned char *p)
{
p[5] = i/100000;
if (p[5]<=0) p[5]=10 ;
i = i%100000;
p[4] = i/10000;
if (p[5]==10)
{
if (p[4]<=0) p[4]=10;
}
i = i%10000;
p[3] = i/1000;
if (p[5]==10)
{
if (p[4]==10)
{
if (p[3]<=0) p[3]=10;
}
}
i = i%1000;
p[2] = i/100;
if (p[5]==10)
{
if (p[4]==10)
{
if (p[3]==10)
{
if (p[2]<=0) p[2]=10;
}
}
}
i = i%100;
p[1] = i/10;
if (p[5]==10)
{
if (p[4]==10)
{
if (p[3]==10)
{
if (p[2]==10)
{
if (p[1]<=0) p[1]=10;
}
}
}
}
i = i%10;
p[0] = i;
p[6] = 10;
p[7] = 10;
p[8] = 10;
p[9] = 10;
p[10] = 10;
p[11] = 10;
p[12] = 10;
}
//
void display_ps123(unsigned char *p)
{
p[5] = 10;
p[4] = 22;
p[3] = 5;
p[2] = 12;
p[1] = 1;
p[0] = 10;
p[6] = 10;
p[7] = 10;
p[8] = 10;
p[9] = 10;
p[10] = 10;
p[11] = 10;
}
//
void display_tr(unsigned char *p)
{
p[5] = 10;
p[4] = 10;
p[3] = 24;
p[2] = 23;
p[1] = 10;
p[0] = 10;
p[6] = 10;
p[7] = 10;
p[8] = 10;
p[9] = 10;
p[10] = 10;
p[11] = 10;
}
//
void display_scl(unsigned char *p)
{
p[5] = 10;
p[4] = 5;
p[3] = 15;
p[2] = 19;
p[1] = 10;
p[0] = 10;
p[6] = 10;
p[7] = 10;
p[8] = 10;
p[9] = 10;
p[10] = 10;
p[11] = 10;
}
//
void display_pont(unsigned char *p)
{
p[5] = 10;
p[4] = 22;
p[3] = 21;
p[2] = 20;
p[1] = 24;
p[0] = 10;
p[6] = 10;
p[7] = 10;
p[8] = 10;
p[9] = 10;
p[10] = 10;
p[11] = 10;
}
//
void display_errer(unsigned char *p)
{
p[5] = 10;
p[4] = 22;
p[3] = 21;
p[2] = 20;
p[1] = 24;
p[0] = 10;
p[6] = 10;
p[7] = 10;
p[8] = 10;
p[9] = 10;
p[10] = 10;
p[11] = 10;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -