示例#1
0
void  TFI_CJ_LedShow (   int CarType , int charge )
{	
	#ifdef OLDCJTFI
	byte command[20];	
	int ret = 0;
	memset ( command , 0x00 , 20 ) ;
	command[1] = DISP_OUT_LED;   //命令字
	sprintf(&command[3],"% 4d% 4d% 4d",CarType,charge,0);
	if(charge)
	{
		command[15] = CarType;
	}
	BBC(command);
	ret = serial_write(LED_COM,command  ,18) ;
	#else
	byte command[20];	
	int ret = 0;
	memset ( command , 0x00 , 20 ) ;
	//金额显示器显示 1 型车 金额 25元 余额不显示,语音:1型车 缴费25元
	//AA 0B 95 31 30 32 35 30 30 30 BB 
	if(CarType>0&&CarType<10&&charge>0)
	{
		command[0] = 0xAA;
		command[1] = 0x0B;
		command[2] = 0x95;//95报价 95不报价
		sprintf(&command[3],"%d%03d%03d",CarType,charge,0);
		command[10] = 0xBB;
		ret = serial_write(LED_COM,command  ,11) ;
	}
	#endif	
}
示例#2
0
void   TFI_CJ_clean ( )
{
	#ifdef OLDCJTFI
	byte command[20];	
	int ret = 0;
	int i = 0;
	memset ( command , 0x00 , 20 ) ;
	command[1] = DISP_OUT_LED;   //命令字
	for (i=3;i<15;++i) 
	{           //数据,清除显示时数据内容为空
        command[i] = ' ';
    }
    command[15] = 0;
	BBC(command);
	ret = serial_write(LED_COM,command  ,18) ;
	#else
	byte command[20];
	int ret = 0;
	memset ( command , 0x00 , 0x00 ) ;
	//0x97	清屏	AA 04 97 BB
	//0x98	清屏,语音:谢谢,祝您一路平安!	AA 04 98 BB
	//0x99	您好	AA 04 99 BB
	//0xA0	谢谢	AA 04 A0 BB
	//0xA1	欢迎光临	AA 04 A1 BB
	//0xA2	别客气	AA 04 A2 BB
	//0xA3	请慢走	AA 04 A3 BB
	//0xA4	走好	AA 04 A4 BB
	//0xA5	再见	AA 04 A5 BB
	command[0] = 0xAA;
	command[1] = 0x04;
	command[2] = 0x97;
	command[3] = 0xBB;
	ret = serial_write(LED_COM,command  ,4) ;
	#endif
}
示例#3
0
   ALU(ADDR, or),          // 0x05
   ALU(DPX, or),           // 0x06
   ALU(IDPX, or),          // 0x07
   ALU(IMM, or),           // 0x08
   ALU(DP_DP, or),         // 0x09
   ALU(BIT, or1),          // 0x0a
   RMW(DP, asl),           // 0x0b
   RMW(ADDR, asl),         // 0x0c
   smp_op_push_p,          // 0x0d
   smp_op_rmw_tset,        // 0x0e
   smp_op_brk,             // 0x0f

   BRANCH_N(n),            // 0x10
   TCALL(1),               // 0x11
   CLR1(0),                // 0x12
   BBC(0),                 // 0x13
   ALU(DPIX, or),          // 0x14
   ALU(ADDRX, or),         // 0x15
   ALU(ADDRY, or),         // 0x16
   ALU(IDPY, or),          // 0x17
   ALU(DP_IMM, or),        // 0x18
   ALU(DPX_DPY, or),       // 0x19
   RMWW(decw),             // 0x1a
   RMW(DPIX, asl),         // 0x1b
   RMW(A, asl),            // 0x1c
   RMW(X, dec),            // 0x1d
   ALUXY(x, addr),         // 0x1e
   smp_op_jmpix,           // 0x1f

   smp_op_clrp,            // 0x20
   TCALL(2),               // 0x21
示例#4
0
void ApuF3()
{
   BBC(7);
}
示例#5
0
void ApuD3()
{
   BBC(6);
}
示例#6
0
void ApuB3()
{
   BBC(5);
}
示例#7
0
void Apu93()
{
   BBC(4);
}
示例#8
0
void Apu73()
{
   BBC(3);
}
示例#9
0
void Apu53()
{
   BBC(2);
}
示例#10
0
void Apu33()
{
   BBC(1);
}
示例#11
0
void Apu13()
{
   BBC(0);
}