From 72def895431ad7a08e635b11f3da738e2b2c4618 Mon Sep 17 00:00:00 2001
From: wujiazhi <1147861305@qq.com>
Date: Thu, 13 Jun 2024 11:31:04 +0800
Subject: [PATCH] add lower model test
---
Function/LCD/lcd_old.c | 4179 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 4,179 insertions(+), 0 deletions(-)
diff --git a/Function/LCD/lcd_old.c b/Function/LCD/lcd_old.c
new file mode 100644
index 0000000..8fa8c66
--- /dev/null
+++ b/Function/LCD/lcd_old.c
@@ -0,0 +1,4179 @@
+#include "lcd.h"
+#include "i2c.h"
+#include "gpio.h"
+#include "lcd_segmentcode.h"
+#include "sundry.h"
+#include "system_parameter.h"
+
+uint8_t LCD_Buffer[SEGNUM] = {0};
+uint8_t LCD_DRIVE_MODE_14_13[1] = {0}; // 1/4duty 1/3bias
+uint8_t LCD_DRIVE_MODE_14_14[1] = {1}; // 1/4duty 1/4bias
+uint8_t LCD_DRIVE_MODE_18_13[1] = {2}; // 1/8duty 1/3bias 48pin��ֻ֧��1/8duty����ַ���ص�33H
+uint8_t LCD_DRIVE_MODE_18_14[1] = {3}; // 1/8duty 1/4bias
+uint8_t LCD_SYSTEM_MODE_OFF_OFF[1] = {0}; // �ڲ�ϵͳ����OFF��LCD��ʾOFF
+uint8_t LCD_SYSTEM_MODE_ON_OFF[1] = {2}; // �ڲ�ϵͳ����ON��LCD��ʾOFF
+uint8_t LCD_SYSTEM_MODE_ON_ON[1] = {3}; // �ڲ�ϵͳ����ON��LCD��ʾON
+//LCD��ʾ����д������
+//starts +w/r_addr+ �����ֽڣ�0x80��+ram�Ĵ�����ַ+��������......+stop �ź�
+void Lcd_Write_Reg(uint8_t sadd,uint8_t * pBuffer,uint8_t len)
+{
+ uint8_t i = 0;
+ I2c_Start();
+ I2c_Send(LCD_ADDR_WRITE);
+ I2c_Send(LCD_REG_DATA_ADDR);
+ I2c_Send(sadd);
+ for(i = 0 ;i < len;i++)
+ I2c_Send(pBuffer[i]);
+ I2c_Stop();
+}
+//LCD���
+void Lcd_Write(uint8_t cmd_add,uint8_t * pBuffer,uint8_t len)
+{
+ uint8_t i = 0;
+ I2c_Start();
+ I2c_Send(LCD_ADDR_WRITE);
+ I2c_Send(cmd_add);
+ for(i = 0 ;i < len;i++)
+ I2c_Send(pBuffer[i]);
+ I2c_Stop();
+}
+
+/***********************************************************************
+ * ���ƣ�Lcd_DisplaySeg()
+ * ���ܣ���ʾһ�ζ���
+ * ���������SegNum:0~127���
+ * ������Lcd_DisplaySeg(_LCD_TI_logo)����ʾTI logo
+ ********************************************************************** */
+void Lcd_DisplaySeg(uint16_t SegNum)
+{
+ LCD_Buffer[SegNum / 8] |= 1 << (SegNum % 8);
+}
+/***********************************************************************
+ * ���ƣ�Lcd_ClearSeg()
+ * ���ܣ����һ�ζ���
+ * ���������SegNum:0~127���
+ * ������Lcd_ClearSeg(_LCD_TI_logo)����ʾTI logo �����ԭ����ǻ���İ�λ���ųɶ����ƣ�����Ӧλ��һ
+ ********************************************************************** */
+void Lcd_ClearSeg(uint16_t SegNum)
+{
+ LCD_Buffer[SegNum / 8] &= ~(1 << (uint8_t)(SegNum % 8));
+}
+//LCD��ʼ��
+void Lcd_Init(void)
+{
+// Lcd_Write(LCD_DRIVE_MODE_COMMAND_ADDR,(uint8_t *)LCD_DRIVE_MODE_18_14,1);
+
+ Lcd_Write(LCD_SYSTEM_MODE_COMMAND_ADDR,LCD_SYSTEM_MODE_ON_ON,1);
+}
+
+void Lcd_DeInit(void)
+{
+ Lcd_Write(LCD_SYSTEM_MODE_COMMAND_ADDR,LCD_SYSTEM_MODE_OFF_OFF,1);
+ LCD_PWR_OFF;
+}
+//***********************************************************************
+// *���ƣ�LCD_DisplayDigit(unsigned char Digit,unsigned char Position )
+// * ���ܣ���128��ʽҺ�����ض���8�֡�����ʾ0~9
+// *���������Digit������ʾ���� 0~9����������������Ϊ����
+// * Position����ʾ����λ���ڼ�����8�֡���
+// *������LCD_DisplayDigit_NEW(9,1 )����9����8�֡�����ʾ1
+// ********************************************************************** */
+void LCD_DisplayDigit_NEW(unsigned char Position ,u8 Digit)
+{
+ switch(Position)
+ {
+ case 1:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_1A_NEW);
+ Lcd_DisplaySeg(_LCD_1B_NEW);
+ Lcd_DisplaySeg(_LCD_1C_NEW);
+ Lcd_DisplaySeg(_LCD_1D_NEW);
+ Lcd_DisplaySeg(_LCD_1E_NEW);
+ Lcd_DisplaySeg(_LCD_1F_NEW);
+ Lcd_ClearSeg(_LCD_1G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_1A_NEW);
+ Lcd_DisplaySeg(_LCD_1B_NEW);
+ Lcd_DisplaySeg(_LCD_1C_NEW);
+ Lcd_ClearSeg(_LCD_1D_NEW);
+ Lcd_ClearSeg(_LCD_1E_NEW);
+ Lcd_ClearSeg(_LCD_1F_NEW);
+ Lcd_ClearSeg(_LCD_1G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_1A_NEW);
+ Lcd_DisplaySeg(_LCD_1B_NEW);
+ Lcd_ClearSeg(_LCD_1C_NEW);
+ Lcd_DisplaySeg(_LCD_1D_NEW);
+ Lcd_DisplaySeg(_LCD_1E_NEW);
+ Lcd_ClearSeg(_LCD_1F_NEW);
+ Lcd_DisplaySeg(_LCD_1G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_1A_NEW);
+ Lcd_DisplaySeg(_LCD_1B_NEW);
+ Lcd_DisplaySeg(_LCD_1C_NEW);
+ Lcd_DisplaySeg(_LCD_1D_NEW);
+ Lcd_ClearSeg(_LCD_1E_NEW);
+ Lcd_ClearSeg(_LCD_1F_NEW);
+ Lcd_DisplaySeg(_LCD_1G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_1A_NEW);
+ Lcd_DisplaySeg(_LCD_1B_NEW);
+ Lcd_DisplaySeg(_LCD_1C_NEW);
+ Lcd_ClearSeg(_LCD_1D_NEW);
+ Lcd_ClearSeg(_LCD_1E_NEW);
+ Lcd_DisplaySeg(_LCD_1F_NEW);
+ Lcd_DisplaySeg(_LCD_1G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_1A_NEW);
+ Lcd_ClearSeg(_LCD_1B_NEW);
+ Lcd_DisplaySeg(_LCD_1C_NEW);
+ Lcd_DisplaySeg(_LCD_1D_NEW);
+ Lcd_ClearSeg(_LCD_1E_NEW);
+ Lcd_DisplaySeg(_LCD_1F_NEW);
+ Lcd_DisplaySeg(_LCD_1G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_1A_NEW);
+ Lcd_ClearSeg(_LCD_1B_NEW);
+ Lcd_DisplaySeg(_LCD_1C_NEW);
+ Lcd_DisplaySeg(_LCD_1D_NEW);
+ Lcd_DisplaySeg(_LCD_1E_NEW);
+ Lcd_DisplaySeg(_LCD_1F_NEW);
+ Lcd_DisplaySeg(_LCD_1G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_1A_NEW);
+ Lcd_DisplaySeg(_LCD_1B_NEW);
+ Lcd_DisplaySeg(_LCD_1C_NEW);
+ Lcd_ClearSeg(_LCD_1D_NEW);
+ Lcd_ClearSeg(_LCD_1E_NEW);
+ Lcd_ClearSeg(_LCD_1F_NEW);
+ Lcd_ClearSeg(_LCD_1G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_1A_NEW);
+ Lcd_DisplaySeg(_LCD_1B_NEW);
+ Lcd_DisplaySeg(_LCD_1C_NEW);
+ Lcd_DisplaySeg(_LCD_1D_NEW);
+ Lcd_DisplaySeg(_LCD_1E_NEW);
+ Lcd_DisplaySeg(_LCD_1F_NEW);
+ Lcd_DisplaySeg(_LCD_1G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_1A_NEW);
+ Lcd_DisplaySeg(_LCD_1B_NEW);
+ Lcd_DisplaySeg(_LCD_1C_NEW);
+ Lcd_DisplaySeg(_LCD_1D_NEW);
+ Lcd_ClearSeg(_LCD_1E_NEW);
+ Lcd_DisplaySeg(_LCD_1F_NEW);
+ Lcd_DisplaySeg(_LCD_1G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+
+ case 2:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_2A_NEW);
+ Lcd_DisplaySeg(_LCD_2B_NEW);
+ Lcd_DisplaySeg(_LCD_2C_NEW);
+ Lcd_DisplaySeg(_LCD_2D_NEW);
+ Lcd_DisplaySeg(_LCD_2E_NEW);
+ Lcd_DisplaySeg(_LCD_2F_NEW);
+ Lcd_ClearSeg(_LCD_2G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_2A_NEW);
+ Lcd_DisplaySeg(_LCD_2B_NEW);
+ Lcd_DisplaySeg(_LCD_2C_NEW);
+ Lcd_ClearSeg(_LCD_2D_NEW);
+ Lcd_ClearSeg(_LCD_2E_NEW);
+ Lcd_ClearSeg(_LCD_2F_NEW);
+ Lcd_ClearSeg(_LCD_2G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_2A_NEW);
+ Lcd_DisplaySeg(_LCD_2B_NEW);
+ Lcd_ClearSeg(_LCD_2C_NEW);
+ Lcd_DisplaySeg(_LCD_2D_NEW);
+ Lcd_DisplaySeg(_LCD_2E_NEW);
+ Lcd_ClearSeg(_LCD_2F_NEW);
+ Lcd_DisplaySeg(_LCD_2G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_2A_NEW);
+ Lcd_DisplaySeg(_LCD_2B_NEW);
+ Lcd_DisplaySeg(_LCD_2C_NEW);
+ Lcd_DisplaySeg(_LCD_2D_NEW);
+ Lcd_ClearSeg(_LCD_2E_NEW);
+ Lcd_ClearSeg(_LCD_2F_NEW);
+ Lcd_DisplaySeg(_LCD_2G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_2A_NEW);
+ Lcd_DisplaySeg(_LCD_2B_NEW);
+ Lcd_DisplaySeg(_LCD_2C_NEW);
+ Lcd_ClearSeg(_LCD_2D_NEW);
+ Lcd_ClearSeg(_LCD_2E_NEW);
+ Lcd_DisplaySeg(_LCD_2F_NEW);
+ Lcd_DisplaySeg(_LCD_2G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_2A_NEW);
+ Lcd_ClearSeg(_LCD_2B_NEW);
+ Lcd_DisplaySeg(_LCD_2C_NEW);
+ Lcd_DisplaySeg(_LCD_2D_NEW);
+ Lcd_ClearSeg(_LCD_2E_NEW);
+ Lcd_DisplaySeg(_LCD_2F_NEW);
+ Lcd_DisplaySeg(_LCD_2G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_2A_NEW);
+ Lcd_ClearSeg(_LCD_2B_NEW);
+ Lcd_DisplaySeg(_LCD_2C_NEW);
+ Lcd_DisplaySeg(_LCD_2D_NEW);
+ Lcd_DisplaySeg(_LCD_2E_NEW);
+ Lcd_DisplaySeg(_LCD_2F_NEW);
+ Lcd_DisplaySeg(_LCD_2G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_2A_NEW);
+ Lcd_DisplaySeg(_LCD_2B_NEW);
+ Lcd_DisplaySeg(_LCD_2C_NEW);
+ Lcd_ClearSeg(_LCD_2D_NEW);
+ Lcd_ClearSeg(_LCD_2E_NEW);
+ Lcd_ClearSeg(_LCD_2F_NEW);
+ Lcd_ClearSeg(_LCD_2G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_2A_NEW);
+ Lcd_DisplaySeg(_LCD_2B_NEW);
+ Lcd_DisplaySeg(_LCD_2C_NEW);
+ Lcd_DisplaySeg(_LCD_2D_NEW);
+ Lcd_DisplaySeg(_LCD_2E_NEW);
+ Lcd_DisplaySeg(_LCD_2F_NEW);
+ Lcd_DisplaySeg(_LCD_2G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_2A_NEW);
+ Lcd_DisplaySeg(_LCD_2B_NEW);
+ Lcd_DisplaySeg(_LCD_2C_NEW);
+ Lcd_DisplaySeg(_LCD_2D_NEW);
+ Lcd_ClearSeg(_LCD_2E_NEW);
+ Lcd_DisplaySeg(_LCD_2F_NEW);
+ Lcd_DisplaySeg(_LCD_2G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 3:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_3A_NEW);
+ Lcd_DisplaySeg(_LCD_3B_NEW);
+ Lcd_DisplaySeg(_LCD_3C_NEW);
+ Lcd_DisplaySeg(_LCD_3D_NEW);
+ Lcd_DisplaySeg(_LCD_3E_NEW);
+ Lcd_DisplaySeg(_LCD_3F_NEW);
+ Lcd_ClearSeg(_LCD_3G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_3A_NEW);
+ Lcd_DisplaySeg(_LCD_3B_NEW);
+ Lcd_DisplaySeg(_LCD_3C_NEW);
+ Lcd_ClearSeg(_LCD_3D_NEW);
+ Lcd_ClearSeg(_LCD_3E_NEW);
+ Lcd_ClearSeg(_LCD_3F_NEW);
+ Lcd_ClearSeg(_LCD_3G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_3A_NEW);
+ Lcd_DisplaySeg(_LCD_3B_NEW);
+ Lcd_ClearSeg(_LCD_3C_NEW);
+ Lcd_DisplaySeg(_LCD_3D_NEW);
+ Lcd_DisplaySeg(_LCD_3E_NEW);
+ Lcd_ClearSeg(_LCD_3F_NEW);
+ Lcd_DisplaySeg(_LCD_3G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_3A_NEW);
+ Lcd_DisplaySeg(_LCD_3B_NEW);
+ Lcd_DisplaySeg(_LCD_3C_NEW);
+ Lcd_DisplaySeg(_LCD_3D_NEW);
+ Lcd_ClearSeg(_LCD_3E_NEW);
+ Lcd_ClearSeg(_LCD_3F_NEW);
+ Lcd_DisplaySeg(_LCD_3G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_3A_NEW);
+ Lcd_DisplaySeg(_LCD_3B_NEW);
+ Lcd_DisplaySeg(_LCD_3C_NEW);
+ Lcd_ClearSeg(_LCD_3D_NEW);
+ Lcd_ClearSeg(_LCD_3E_NEW);
+ Lcd_DisplaySeg(_LCD_3F_NEW);
+ Lcd_DisplaySeg(_LCD_3G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_3A_NEW);
+ Lcd_ClearSeg(_LCD_3B_NEW);
+ Lcd_DisplaySeg(_LCD_3C_NEW);
+ Lcd_DisplaySeg(_LCD_3D_NEW);
+ Lcd_ClearSeg(_LCD_3E_NEW);
+ Lcd_DisplaySeg(_LCD_3F_NEW);
+ Lcd_DisplaySeg(_LCD_3G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_3A_NEW);
+ Lcd_ClearSeg(_LCD_3B_NEW);
+ Lcd_DisplaySeg(_LCD_3C_NEW);
+ Lcd_DisplaySeg(_LCD_3D_NEW);
+ Lcd_DisplaySeg(_LCD_3E_NEW);
+ Lcd_DisplaySeg(_LCD_3F_NEW);
+ Lcd_DisplaySeg(_LCD_3G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_3A_NEW);
+ Lcd_DisplaySeg(_LCD_3B_NEW);
+ Lcd_DisplaySeg(_LCD_3C_NEW);
+ Lcd_ClearSeg(_LCD_3D_NEW);
+ Lcd_ClearSeg(_LCD_3E_NEW);
+ Lcd_ClearSeg(_LCD_3F_NEW);
+ Lcd_ClearSeg(_LCD_3G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_3A_NEW);
+ Lcd_DisplaySeg(_LCD_3B_NEW);
+ Lcd_DisplaySeg(_LCD_3C_NEW);
+ Lcd_DisplaySeg(_LCD_3D_NEW);
+ Lcd_DisplaySeg(_LCD_3E_NEW);
+ Lcd_DisplaySeg(_LCD_3F_NEW);
+ Lcd_DisplaySeg(_LCD_3G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_3A_NEW);
+ Lcd_DisplaySeg(_LCD_3B_NEW);
+ Lcd_DisplaySeg(_LCD_3C_NEW);
+ Lcd_DisplaySeg(_LCD_3D_NEW);
+ Lcd_ClearSeg(_LCD_3E_NEW);
+ Lcd_DisplaySeg(_LCD_3F_NEW);
+ Lcd_DisplaySeg(_LCD_3G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 4:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_4A_NEW);
+ Lcd_DisplaySeg(_LCD_4B_NEW);
+ Lcd_DisplaySeg(_LCD_4C_NEW);
+ Lcd_DisplaySeg(_LCD_4D_NEW);
+ Lcd_DisplaySeg(_LCD_4E_NEW);
+ Lcd_DisplaySeg(_LCD_4F_NEW);
+ Lcd_ClearSeg(_LCD_4G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_4A_NEW);
+ Lcd_DisplaySeg(_LCD_4B_NEW);
+ Lcd_DisplaySeg(_LCD_4C_NEW);
+ Lcd_ClearSeg(_LCD_4D_NEW);
+ Lcd_ClearSeg(_LCD_4E_NEW);
+ Lcd_ClearSeg(_LCD_4F_NEW);
+ Lcd_ClearSeg(_LCD_4G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_4A_NEW);
+ Lcd_DisplaySeg(_LCD_4B_NEW);
+ Lcd_ClearSeg(_LCD_4C_NEW);
+ Lcd_DisplaySeg(_LCD_4D_NEW);
+ Lcd_DisplaySeg(_LCD_4E_NEW);
+ Lcd_ClearSeg(_LCD_4F_NEW);
+ Lcd_DisplaySeg(_LCD_4G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_4A_NEW);
+ Lcd_DisplaySeg(_LCD_4B_NEW);
+ Lcd_DisplaySeg(_LCD_4C_NEW);
+ Lcd_DisplaySeg(_LCD_4D_NEW);
+ Lcd_ClearSeg(_LCD_4E_NEW);
+ Lcd_ClearSeg(_LCD_4F_NEW);
+ Lcd_DisplaySeg(_LCD_4G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_4A_NEW);
+ Lcd_DisplaySeg(_LCD_4B_NEW);
+ Lcd_DisplaySeg(_LCD_4C_NEW);
+ Lcd_ClearSeg(_LCD_4D_NEW);
+ Lcd_ClearSeg(_LCD_4E_NEW);
+ Lcd_DisplaySeg(_LCD_4F_NEW);
+ Lcd_DisplaySeg(_LCD_4G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_4A_NEW);
+ Lcd_ClearSeg(_LCD_4B_NEW);
+ Lcd_DisplaySeg(_LCD_4C_NEW);
+ Lcd_DisplaySeg(_LCD_4D_NEW);
+ Lcd_ClearSeg(_LCD_4E_NEW);
+ Lcd_DisplaySeg(_LCD_4F_NEW);
+ Lcd_DisplaySeg(_LCD_4G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_4A_NEW);
+ Lcd_ClearSeg(_LCD_4B_NEW);
+ Lcd_DisplaySeg(_LCD_4C_NEW);
+ Lcd_DisplaySeg(_LCD_4D_NEW);
+ Lcd_DisplaySeg(_LCD_4E_NEW);
+ Lcd_DisplaySeg(_LCD_4F_NEW);
+ Lcd_DisplaySeg(_LCD_4G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_4A_NEW);
+ Lcd_DisplaySeg(_LCD_4B_NEW);
+ Lcd_DisplaySeg(_LCD_4C_NEW);
+ Lcd_ClearSeg(_LCD_4D_NEW);
+ Lcd_ClearSeg(_LCD_4E_NEW);
+ Lcd_ClearSeg(_LCD_4F_NEW);
+ Lcd_ClearSeg(_LCD_4G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_4A_NEW);
+ Lcd_DisplaySeg(_LCD_4B_NEW);
+ Lcd_DisplaySeg(_LCD_4C_NEW);
+ Lcd_DisplaySeg(_LCD_4D_NEW);
+ Lcd_DisplaySeg(_LCD_4E_NEW);
+ Lcd_DisplaySeg(_LCD_4F_NEW);
+ Lcd_DisplaySeg(_LCD_4G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_4A_NEW);
+ Lcd_DisplaySeg(_LCD_4B_NEW);
+ Lcd_DisplaySeg(_LCD_4C_NEW);
+ Lcd_DisplaySeg(_LCD_4D_NEW);
+ Lcd_ClearSeg(_LCD_4E_NEW);
+ Lcd_DisplaySeg(_LCD_4F_NEW);
+ Lcd_DisplaySeg(_LCD_4G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 5:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_5A_NEW);
+ Lcd_DisplaySeg(_LCD_5B_NEW);
+ Lcd_DisplaySeg(_LCD_5C_NEW);
+ Lcd_DisplaySeg(_LCD_5D_NEW);
+ Lcd_DisplaySeg(_LCD_5E_NEW);
+ Lcd_DisplaySeg(_LCD_5F_NEW);
+ Lcd_ClearSeg(_LCD_5G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_5A_NEW);
+ Lcd_DisplaySeg(_LCD_5B_NEW);
+ Lcd_DisplaySeg(_LCD_5C_NEW);
+ Lcd_ClearSeg(_LCD_5D_NEW);
+ Lcd_ClearSeg(_LCD_5E_NEW);
+ Lcd_ClearSeg(_LCD_5F_NEW);
+ Lcd_ClearSeg(_LCD_5G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_5A_NEW);
+ Lcd_DisplaySeg(_LCD_5B_NEW);
+ Lcd_ClearSeg(_LCD_5C_NEW);
+ Lcd_DisplaySeg(_LCD_5D_NEW);
+ Lcd_DisplaySeg(_LCD_5E_NEW);
+ Lcd_ClearSeg(_LCD_5F_NEW);
+ Lcd_DisplaySeg(_LCD_5G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_5A_NEW);
+ Lcd_DisplaySeg(_LCD_5B_NEW);
+ Lcd_DisplaySeg(_LCD_5C_NEW);
+ Lcd_DisplaySeg(_LCD_5D_NEW);
+ Lcd_ClearSeg(_LCD_5E_NEW);
+ Lcd_ClearSeg(_LCD_5F_NEW);
+ Lcd_DisplaySeg(_LCD_5G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_5A_NEW);
+ Lcd_DisplaySeg(_LCD_5B_NEW);
+ Lcd_DisplaySeg(_LCD_5C_NEW);
+ Lcd_ClearSeg(_LCD_5D_NEW);
+ Lcd_ClearSeg(_LCD_5E_NEW);
+ Lcd_DisplaySeg(_LCD_5F_NEW);
+ Lcd_DisplaySeg(_LCD_5G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_5A_NEW);
+ Lcd_ClearSeg(_LCD_5B_NEW);
+ Lcd_DisplaySeg(_LCD_5C_NEW);
+ Lcd_DisplaySeg(_LCD_5D_NEW);
+ Lcd_ClearSeg(_LCD_5E_NEW);
+ Lcd_DisplaySeg(_LCD_5F_NEW);
+ Lcd_DisplaySeg(_LCD_5G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_5A_NEW);
+ Lcd_ClearSeg(_LCD_5B_NEW);
+ Lcd_DisplaySeg(_LCD_5C_NEW);
+ Lcd_DisplaySeg(_LCD_5D_NEW);
+ Lcd_DisplaySeg(_LCD_5E_NEW);
+ Lcd_DisplaySeg(_LCD_5F_NEW);
+ Lcd_DisplaySeg(_LCD_5G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_5A_NEW);
+ Lcd_DisplaySeg(_LCD_5B_NEW);
+ Lcd_DisplaySeg(_LCD_5C_NEW);
+ Lcd_ClearSeg(_LCD_5D_NEW);
+ Lcd_ClearSeg(_LCD_5E_NEW);
+ Lcd_ClearSeg(_LCD_5F_NEW);
+ Lcd_ClearSeg(_LCD_5G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_5A_NEW);
+ Lcd_DisplaySeg(_LCD_5B_NEW);
+ Lcd_DisplaySeg(_LCD_5C_NEW);
+ Lcd_DisplaySeg(_LCD_5D_NEW);
+ Lcd_DisplaySeg(_LCD_5E_NEW);
+ Lcd_DisplaySeg(_LCD_5F_NEW);
+ Lcd_DisplaySeg(_LCD_5G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_5A_NEW);
+ Lcd_DisplaySeg(_LCD_5B_NEW);
+ Lcd_DisplaySeg(_LCD_5C_NEW);
+ Lcd_DisplaySeg(_LCD_5D_NEW);
+ Lcd_ClearSeg(_LCD_5E_NEW);
+ Lcd_DisplaySeg(_LCD_5F_NEW);
+ Lcd_DisplaySeg(_LCD_5G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 6:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_6A_NEW);
+ Lcd_DisplaySeg(_LCD_6B_NEW);
+ Lcd_DisplaySeg(_LCD_6C_NEW);
+ Lcd_DisplaySeg(_LCD_6D_NEW);
+ Lcd_DisplaySeg(_LCD_6E_NEW);
+ Lcd_DisplaySeg(_LCD_6F_NEW);
+ Lcd_ClearSeg(_LCD_6G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_6A_NEW);
+ Lcd_DisplaySeg(_LCD_6B_NEW);
+ Lcd_DisplaySeg(_LCD_6C_NEW);
+ Lcd_ClearSeg(_LCD_6D_NEW);
+ Lcd_ClearSeg(_LCD_6E_NEW);
+ Lcd_ClearSeg(_LCD_6F_NEW);
+ Lcd_ClearSeg(_LCD_6G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_6A_NEW);
+ Lcd_DisplaySeg(_LCD_6B_NEW);
+ Lcd_ClearSeg(_LCD_6C_NEW);
+ Lcd_DisplaySeg(_LCD_6D_NEW);
+ Lcd_DisplaySeg(_LCD_6E_NEW);
+ Lcd_ClearSeg(_LCD_6F_NEW);
+ Lcd_DisplaySeg(_LCD_6G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_6A_NEW);
+ Lcd_DisplaySeg(_LCD_6B_NEW);
+ Lcd_DisplaySeg(_LCD_6C_NEW);
+ Lcd_DisplaySeg(_LCD_6D_NEW);
+ Lcd_ClearSeg(_LCD_6E_NEW);
+ Lcd_ClearSeg(_LCD_6F_NEW);
+ Lcd_DisplaySeg(_LCD_6G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_6A_NEW);
+ Lcd_DisplaySeg(_LCD_6B_NEW);
+ Lcd_DisplaySeg(_LCD_6C_NEW);
+ Lcd_ClearSeg(_LCD_6D_NEW);
+ Lcd_ClearSeg(_LCD_6E_NEW);
+ Lcd_DisplaySeg(_LCD_6F_NEW);
+ Lcd_DisplaySeg(_LCD_6G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_6A_NEW);
+ Lcd_ClearSeg(_LCD_6B_NEW);
+ Lcd_DisplaySeg(_LCD_6C_NEW);
+ Lcd_DisplaySeg(_LCD_6D_NEW);
+ Lcd_ClearSeg(_LCD_6E_NEW);
+ Lcd_DisplaySeg(_LCD_6F_NEW);
+ Lcd_DisplaySeg(_LCD_6G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_6A_NEW);
+ Lcd_ClearSeg(_LCD_6B_NEW);
+ Lcd_DisplaySeg(_LCD_6C_NEW);
+ Lcd_DisplaySeg(_LCD_6D_NEW);
+ Lcd_DisplaySeg(_LCD_6E_NEW);
+ Lcd_DisplaySeg(_LCD_6F_NEW);
+ Lcd_DisplaySeg(_LCD_6G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_6A_NEW);
+ Lcd_DisplaySeg(_LCD_6B_NEW);
+ Lcd_DisplaySeg(_LCD_6C_NEW);
+ Lcd_ClearSeg(_LCD_6D_NEW);
+ Lcd_ClearSeg(_LCD_6E_NEW);
+ Lcd_ClearSeg(_LCD_6F_NEW);
+ Lcd_ClearSeg(_LCD_6G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_6A_NEW);
+ Lcd_DisplaySeg(_LCD_6B_NEW);
+ Lcd_DisplaySeg(_LCD_6C_NEW);
+ Lcd_DisplaySeg(_LCD_6D_NEW);
+ Lcd_DisplaySeg(_LCD_6E_NEW);
+ Lcd_DisplaySeg(_LCD_6F_NEW);
+ Lcd_DisplaySeg(_LCD_6G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_6A_NEW);
+ Lcd_DisplaySeg(_LCD_6B_NEW);
+ Lcd_DisplaySeg(_LCD_6C_NEW);
+ Lcd_DisplaySeg(_LCD_6D_NEW);
+ Lcd_ClearSeg(_LCD_6E_NEW);
+ Lcd_DisplaySeg(_LCD_6F_NEW);
+ Lcd_DisplaySeg(_LCD_6G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 7:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_7A_NEW);
+ Lcd_DisplaySeg(_LCD_7B_NEW);
+ Lcd_DisplaySeg(_LCD_7C_NEW);
+ Lcd_DisplaySeg(_LCD_7D_NEW);
+ Lcd_DisplaySeg(_LCD_7E_NEW);
+ Lcd_DisplaySeg(_LCD_7F_NEW);
+ Lcd_ClearSeg(_LCD_7G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_7A_NEW);
+ Lcd_DisplaySeg(_LCD_7B_NEW);
+ Lcd_DisplaySeg(_LCD_7C_NEW);
+ Lcd_ClearSeg(_LCD_7D_NEW);
+ Lcd_ClearSeg(_LCD_7E_NEW);
+ Lcd_ClearSeg(_LCD_7F_NEW);
+ Lcd_ClearSeg(_LCD_7G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_7A_NEW);
+ Lcd_DisplaySeg(_LCD_7B_NEW);
+ Lcd_ClearSeg(_LCD_7C_NEW);
+ Lcd_DisplaySeg(_LCD_7D_NEW);
+ Lcd_DisplaySeg(_LCD_7E_NEW);
+ Lcd_ClearSeg(_LCD_7F_NEW);
+ Lcd_DisplaySeg(_LCD_7G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_7A_NEW);
+ Lcd_DisplaySeg(_LCD_7B_NEW);
+ Lcd_DisplaySeg(_LCD_7C_NEW);
+ Lcd_DisplaySeg(_LCD_7D_NEW);
+ Lcd_ClearSeg(_LCD_7E_NEW);
+ Lcd_ClearSeg(_LCD_7F_NEW);
+ Lcd_DisplaySeg(_LCD_7G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_7A_NEW);
+ Lcd_DisplaySeg(_LCD_7B_NEW);
+ Lcd_DisplaySeg(_LCD_7C_NEW);
+ Lcd_ClearSeg(_LCD_7D_NEW);
+ Lcd_ClearSeg(_LCD_7E_NEW);
+ Lcd_DisplaySeg(_LCD_7F_NEW);
+ Lcd_DisplaySeg(_LCD_7G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_7A_NEW);
+ Lcd_ClearSeg(_LCD_7B_NEW);
+ Lcd_DisplaySeg(_LCD_7C_NEW);
+ Lcd_DisplaySeg(_LCD_7D_NEW);
+ Lcd_ClearSeg(_LCD_7E_NEW);
+ Lcd_DisplaySeg(_LCD_7F_NEW);
+ Lcd_DisplaySeg(_LCD_7G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_7A_NEW);
+ Lcd_ClearSeg(_LCD_7B_NEW);
+ Lcd_DisplaySeg(_LCD_7C_NEW);
+ Lcd_DisplaySeg(_LCD_7D_NEW);
+ Lcd_DisplaySeg(_LCD_7E_NEW);
+ Lcd_DisplaySeg(_LCD_7F_NEW);
+ Lcd_DisplaySeg(_LCD_7G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_7A_NEW);
+ Lcd_DisplaySeg(_LCD_7B_NEW);
+ Lcd_DisplaySeg(_LCD_7C_NEW);
+ Lcd_ClearSeg(_LCD_7D_NEW);
+ Lcd_ClearSeg(_LCD_7E_NEW);
+ Lcd_ClearSeg(_LCD_7F_NEW);
+ Lcd_ClearSeg(_LCD_7G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_7A_NEW);
+ Lcd_DisplaySeg(_LCD_7B_NEW);
+ Lcd_DisplaySeg(_LCD_7C_NEW);
+ Lcd_DisplaySeg(_LCD_7D_NEW);
+ Lcd_DisplaySeg(_LCD_7E_NEW);
+ Lcd_DisplaySeg(_LCD_7F_NEW);
+ Lcd_DisplaySeg(_LCD_7G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_7A_NEW);
+ Lcd_DisplaySeg(_LCD_7B_NEW);
+ Lcd_DisplaySeg(_LCD_7C_NEW);
+ Lcd_DisplaySeg(_LCD_7D_NEW);
+ Lcd_ClearSeg(_LCD_7E_NEW);
+ Lcd_DisplaySeg(_LCD_7F_NEW);
+ Lcd_DisplaySeg(_LCD_7G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 8:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_8A_NEW);
+ Lcd_DisplaySeg(_LCD_8B_NEW);
+ Lcd_DisplaySeg(_LCD_8C_NEW);
+ Lcd_DisplaySeg(_LCD_8D_NEW);
+ Lcd_DisplaySeg(_LCD_8E_NEW);
+ Lcd_DisplaySeg(_LCD_8F_NEW);
+ Lcd_ClearSeg(_LCD_8G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_8A_NEW);
+ Lcd_DisplaySeg(_LCD_8B_NEW);
+ Lcd_DisplaySeg(_LCD_8C_NEW);
+ Lcd_ClearSeg(_LCD_8D_NEW);
+ Lcd_ClearSeg(_LCD_8E_NEW);
+ Lcd_ClearSeg(_LCD_8F_NEW);
+ Lcd_ClearSeg(_LCD_8G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_8A_NEW);
+ Lcd_DisplaySeg(_LCD_8B_NEW);
+ Lcd_ClearSeg(_LCD_8C_NEW);
+ Lcd_DisplaySeg(_LCD_8D_NEW);
+ Lcd_DisplaySeg(_LCD_8E_NEW);
+ Lcd_ClearSeg(_LCD_8F_NEW);
+ Lcd_DisplaySeg(_LCD_8G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_8A_NEW);
+ Lcd_DisplaySeg(_LCD_8B_NEW);
+ Lcd_DisplaySeg(_LCD_8C_NEW);
+ Lcd_DisplaySeg(_LCD_8D_NEW);
+ Lcd_ClearSeg(_LCD_8E_NEW);
+ Lcd_ClearSeg(_LCD_8F_NEW);
+ Lcd_DisplaySeg(_LCD_8G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_8A_NEW);
+ Lcd_DisplaySeg(_LCD_8B_NEW);
+ Lcd_DisplaySeg(_LCD_8C_NEW);
+ Lcd_ClearSeg(_LCD_8D_NEW);
+ Lcd_ClearSeg(_LCD_8E_NEW);
+ Lcd_DisplaySeg(_LCD_8F_NEW);
+ Lcd_DisplaySeg(_LCD_8G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_8A_NEW);
+ Lcd_ClearSeg(_LCD_8B_NEW);
+ Lcd_DisplaySeg(_LCD_8C_NEW);
+ Lcd_DisplaySeg(_LCD_8D_NEW);
+ Lcd_ClearSeg(_LCD_8E_NEW);
+ Lcd_DisplaySeg(_LCD_8F_NEW);
+ Lcd_DisplaySeg(_LCD_8G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_8A_NEW);
+ Lcd_ClearSeg(_LCD_8B_NEW);
+ Lcd_DisplaySeg(_LCD_8C_NEW);
+ Lcd_DisplaySeg(_LCD_8D_NEW);
+ Lcd_DisplaySeg(_LCD_8E_NEW);
+ Lcd_DisplaySeg(_LCD_8F_NEW);
+ Lcd_DisplaySeg(_LCD_8G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_8A_NEW);
+ Lcd_DisplaySeg(_LCD_8B_NEW);
+ Lcd_DisplaySeg(_LCD_8C_NEW);
+ Lcd_ClearSeg(_LCD_8D_NEW);
+ Lcd_ClearSeg(_LCD_8E_NEW);
+ Lcd_ClearSeg(_LCD_8F_NEW);
+ Lcd_ClearSeg(_LCD_8G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_8A_NEW);
+ Lcd_DisplaySeg(_LCD_8B_NEW);
+ Lcd_DisplaySeg(_LCD_8C_NEW);
+ Lcd_DisplaySeg(_LCD_8D_NEW);
+ Lcd_DisplaySeg(_LCD_8E_NEW);
+ Lcd_DisplaySeg(_LCD_8F_NEW);
+ Lcd_DisplaySeg(_LCD_8G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_8A_NEW);
+ Lcd_DisplaySeg(_LCD_8B_NEW);
+ Lcd_DisplaySeg(_LCD_8C_NEW);
+ Lcd_DisplaySeg(_LCD_8D_NEW);
+ Lcd_ClearSeg(_LCD_8E_NEW);
+ Lcd_DisplaySeg(_LCD_8F_NEW);
+ Lcd_DisplaySeg(_LCD_8G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+
+ case 9:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_9A_NEW);
+ Lcd_DisplaySeg(_LCD_9B_NEW);
+ Lcd_DisplaySeg(_LCD_9C_NEW);
+ Lcd_DisplaySeg(_LCD_9D_NEW);
+ Lcd_DisplaySeg(_LCD_9E_NEW);
+ Lcd_DisplaySeg(_LCD_9F_NEW);
+ Lcd_ClearSeg(_LCD_9G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_9A_NEW);
+ Lcd_DisplaySeg(_LCD_9B_NEW);
+ Lcd_DisplaySeg(_LCD_9C_NEW);
+ Lcd_ClearSeg(_LCD_9D_NEW);
+ Lcd_ClearSeg(_LCD_9E_NEW);
+ Lcd_ClearSeg(_LCD_9F_NEW);
+ Lcd_ClearSeg(_LCD_9G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_9A_NEW);
+ Lcd_DisplaySeg(_LCD_9B_NEW);
+ Lcd_ClearSeg(_LCD_9C_NEW);
+ Lcd_DisplaySeg(_LCD_9D_NEW);
+ Lcd_DisplaySeg(_LCD_9E_NEW);
+ Lcd_ClearSeg(_LCD_9F_NEW);
+ Lcd_DisplaySeg(_LCD_9G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_9A_NEW);
+ Lcd_DisplaySeg(_LCD_9B_NEW);
+ Lcd_DisplaySeg(_LCD_9C_NEW);
+ Lcd_DisplaySeg(_LCD_9D_NEW);
+ Lcd_ClearSeg(_LCD_9E_NEW);
+ Lcd_ClearSeg(_LCD_9F_NEW);
+ Lcd_DisplaySeg(_LCD_9G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_9A_NEW);
+ Lcd_DisplaySeg(_LCD_9B_NEW);
+ Lcd_DisplaySeg(_LCD_9C_NEW);
+ Lcd_ClearSeg(_LCD_9D_NEW);
+ Lcd_ClearSeg(_LCD_9E_NEW);
+ Lcd_DisplaySeg(_LCD_9F_NEW);
+ Lcd_DisplaySeg(_LCD_9G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_9A_NEW);
+ Lcd_ClearSeg(_LCD_9B_NEW);
+ Lcd_DisplaySeg(_LCD_9C_NEW);
+ Lcd_DisplaySeg(_LCD_9D_NEW);
+ Lcd_ClearSeg(_LCD_9E_NEW);
+ Lcd_DisplaySeg(_LCD_9F_NEW);
+ Lcd_DisplaySeg(_LCD_9G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_9A_NEW);
+ Lcd_ClearSeg(_LCD_9B_NEW);
+ Lcd_DisplaySeg(_LCD_9C_NEW);
+ Lcd_DisplaySeg(_LCD_9D_NEW);
+ Lcd_DisplaySeg(_LCD_9E_NEW);
+ Lcd_DisplaySeg(_LCD_9F_NEW);
+ Lcd_DisplaySeg(_LCD_9G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_9A_NEW);
+ Lcd_DisplaySeg(_LCD_9B_NEW);
+ Lcd_DisplaySeg(_LCD_9C_NEW);
+ Lcd_ClearSeg(_LCD_9D_NEW);
+ Lcd_ClearSeg(_LCD_9E_NEW);
+ Lcd_ClearSeg(_LCD_9F_NEW);
+ Lcd_ClearSeg(_LCD_9G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_9A_NEW);
+ Lcd_DisplaySeg(_LCD_9B_NEW);
+ Lcd_DisplaySeg(_LCD_9C_NEW);
+ Lcd_DisplaySeg(_LCD_9D_NEW);
+ Lcd_DisplaySeg(_LCD_9E_NEW);
+ Lcd_DisplaySeg(_LCD_9F_NEW);
+ Lcd_DisplaySeg(_LCD_9G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_9A_NEW);
+ Lcd_DisplaySeg(_LCD_9B_NEW);
+ Lcd_DisplaySeg(_LCD_9C_NEW);
+ Lcd_DisplaySeg(_LCD_9D_NEW);
+ Lcd_ClearSeg(_LCD_9E_NEW);
+ Lcd_DisplaySeg(_LCD_9F_NEW);
+ Lcd_DisplaySeg(_LCD_9G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 10:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_10A_NEW);
+ Lcd_DisplaySeg(_LCD_10B_NEW);
+ Lcd_DisplaySeg(_LCD_10C_NEW);
+ Lcd_DisplaySeg(_LCD_10D_NEW);
+ Lcd_DisplaySeg(_LCD_10E_NEW);
+ Lcd_DisplaySeg(_LCD_10F_NEW);
+ Lcd_ClearSeg(_LCD_10G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_10A_NEW);
+ Lcd_DisplaySeg(_LCD_10B_NEW);
+ Lcd_DisplaySeg(_LCD_10C_NEW);
+ Lcd_ClearSeg(_LCD_10D_NEW);
+ Lcd_ClearSeg(_LCD_10E_NEW);
+ Lcd_ClearSeg(_LCD_10F_NEW);
+ Lcd_ClearSeg(_LCD_10G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_10A_NEW);
+ Lcd_DisplaySeg(_LCD_10B_NEW);
+ Lcd_ClearSeg(_LCD_10C_NEW);
+ Lcd_DisplaySeg(_LCD_10D_NEW);
+ Lcd_DisplaySeg(_LCD_10E_NEW);
+ Lcd_ClearSeg(_LCD_10F_NEW);
+ Lcd_DisplaySeg(_LCD_10G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_10A_NEW);
+ Lcd_DisplaySeg(_LCD_10B_NEW);
+ Lcd_DisplaySeg(_LCD_10C_NEW);
+ Lcd_DisplaySeg(_LCD_10D_NEW);
+ Lcd_ClearSeg(_LCD_10E_NEW);
+ Lcd_ClearSeg(_LCD_10F_NEW);
+ Lcd_DisplaySeg(_LCD_10G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_10A_NEW);
+ Lcd_DisplaySeg(_LCD_10B_NEW);
+ Lcd_DisplaySeg(_LCD_10C_NEW);
+ Lcd_ClearSeg(_LCD_10D_NEW);
+ Lcd_ClearSeg(_LCD_10E_NEW);
+ Lcd_DisplaySeg(_LCD_10F_NEW);
+ Lcd_DisplaySeg(_LCD_10G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_10A_NEW);
+ Lcd_ClearSeg(_LCD_10B_NEW);
+ Lcd_DisplaySeg(_LCD_10C_NEW);
+ Lcd_DisplaySeg(_LCD_10D_NEW);
+ Lcd_ClearSeg(_LCD_10E_NEW);
+ Lcd_DisplaySeg(_LCD_10F_NEW);
+ Lcd_DisplaySeg(_LCD_10G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_10A_NEW);
+ Lcd_ClearSeg(_LCD_10B_NEW);
+ Lcd_DisplaySeg(_LCD_10C_NEW);
+ Lcd_DisplaySeg(_LCD_10D_NEW);
+ Lcd_DisplaySeg(_LCD_10E_NEW);
+ Lcd_DisplaySeg(_LCD_10F_NEW);
+ Lcd_DisplaySeg(_LCD_10G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_10A_NEW);
+ Lcd_DisplaySeg(_LCD_10B_NEW);
+ Lcd_DisplaySeg(_LCD_10C_NEW);
+ Lcd_ClearSeg(_LCD_10D_NEW);
+ Lcd_ClearSeg(_LCD_10E_NEW);
+ Lcd_ClearSeg(_LCD_10F_NEW);
+ Lcd_ClearSeg(_LCD_10G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_10A_NEW);
+ Lcd_DisplaySeg(_LCD_10B_NEW);
+ Lcd_DisplaySeg(_LCD_10C_NEW);
+ Lcd_DisplaySeg(_LCD_10D_NEW);
+ Lcd_DisplaySeg(_LCD_10E_NEW);
+ Lcd_DisplaySeg(_LCD_10F_NEW);
+ Lcd_DisplaySeg(_LCD_10G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_10A_NEW);
+ Lcd_DisplaySeg(_LCD_10B_NEW);
+ Lcd_DisplaySeg(_LCD_10C_NEW);
+ Lcd_DisplaySeg(_LCD_10D_NEW);
+ Lcd_ClearSeg(_LCD_10E_NEW);
+ Lcd_DisplaySeg(_LCD_10F_NEW);
+ Lcd_DisplaySeg(_LCD_10G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 11:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_11A_NEW);
+ Lcd_DisplaySeg(_LCD_11B_NEW);
+ Lcd_DisplaySeg(_LCD_11C_NEW);
+ Lcd_DisplaySeg(_LCD_11D_NEW);
+ Lcd_DisplaySeg(_LCD_11E_NEW);
+ Lcd_DisplaySeg(_LCD_11F_NEW);
+ Lcd_ClearSeg(_LCD_11G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_11A_NEW);
+ Lcd_DisplaySeg(_LCD_11B_NEW);
+ Lcd_DisplaySeg(_LCD_11C_NEW);
+ Lcd_ClearSeg(_LCD_11D_NEW);
+ Lcd_ClearSeg(_LCD_11E_NEW);
+ Lcd_ClearSeg(_LCD_11F_NEW);
+ Lcd_ClearSeg(_LCD_11G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_11A_NEW);
+ Lcd_DisplaySeg(_LCD_11B_NEW);
+ Lcd_ClearSeg(_LCD_11C_NEW);
+ Lcd_DisplaySeg(_LCD_11D_NEW);
+ Lcd_DisplaySeg(_LCD_11E_NEW);
+ Lcd_ClearSeg(_LCD_11F_NEW);
+ Lcd_DisplaySeg(_LCD_11G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_11A_NEW);
+ Lcd_DisplaySeg(_LCD_11B_NEW);
+ Lcd_DisplaySeg(_LCD_11C_NEW);
+ Lcd_DisplaySeg(_LCD_11D_NEW);
+ Lcd_ClearSeg(_LCD_11E_NEW);
+ Lcd_ClearSeg(_LCD_11F_NEW);
+ Lcd_DisplaySeg(_LCD_11G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_11A_NEW);
+ Lcd_DisplaySeg(_LCD_11B_NEW);
+ Lcd_DisplaySeg(_LCD_11C_NEW);
+ Lcd_ClearSeg(_LCD_11D_NEW);
+ Lcd_ClearSeg(_LCD_11E_NEW);
+ Lcd_DisplaySeg(_LCD_11F_NEW);
+ Lcd_DisplaySeg(_LCD_11G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_11A_NEW);
+ Lcd_ClearSeg(_LCD_11B_NEW);
+ Lcd_DisplaySeg(_LCD_11C_NEW);
+ Lcd_DisplaySeg(_LCD_11D_NEW);
+ Lcd_ClearSeg(_LCD_11E_NEW);
+ Lcd_DisplaySeg(_LCD_11F_NEW);
+ Lcd_DisplaySeg(_LCD_11G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_11A_NEW);
+ Lcd_ClearSeg(_LCD_11B_NEW);
+ Lcd_DisplaySeg(_LCD_11C_NEW);
+ Lcd_DisplaySeg(_LCD_11D_NEW);
+ Lcd_DisplaySeg(_LCD_11E_NEW);
+ Lcd_DisplaySeg(_LCD_11F_NEW);
+ Lcd_DisplaySeg(_LCD_11G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_11A_NEW);
+ Lcd_DisplaySeg(_LCD_11B_NEW);
+ Lcd_DisplaySeg(_LCD_11C_NEW);
+ Lcd_ClearSeg(_LCD_11D_NEW);
+ Lcd_ClearSeg(_LCD_11E_NEW);
+ Lcd_ClearSeg(_LCD_11F_NEW);
+ Lcd_ClearSeg(_LCD_11G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_11A_NEW);
+ Lcd_DisplaySeg(_LCD_11B_NEW);
+ Lcd_DisplaySeg(_LCD_11C_NEW);
+ Lcd_DisplaySeg(_LCD_11D_NEW);
+ Lcd_DisplaySeg(_LCD_11E_NEW);
+ Lcd_DisplaySeg(_LCD_11F_NEW);
+ Lcd_DisplaySeg(_LCD_11G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_11A_NEW);
+ Lcd_DisplaySeg(_LCD_11B_NEW);
+ Lcd_DisplaySeg(_LCD_11C_NEW);
+ Lcd_DisplaySeg(_LCD_11D_NEW);
+ Lcd_ClearSeg(_LCD_11E_NEW);
+ Lcd_DisplaySeg(_LCD_11F_NEW);
+ Lcd_DisplaySeg(_LCD_11G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 12:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_12A_NEW);
+ Lcd_DisplaySeg(_LCD_12B_NEW);
+ Lcd_DisplaySeg(_LCD_12C_NEW);
+ Lcd_DisplaySeg(_LCD_12D_NEW);
+ Lcd_DisplaySeg(_LCD_12E_NEW);
+ Lcd_DisplaySeg(_LCD_12F_NEW);
+ Lcd_ClearSeg(_LCD_12G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_12A_NEW);
+ Lcd_DisplaySeg(_LCD_12B_NEW);
+ Lcd_DisplaySeg(_LCD_12C_NEW);
+ Lcd_ClearSeg(_LCD_12D_NEW);
+ Lcd_ClearSeg(_LCD_12E_NEW);
+ Lcd_ClearSeg(_LCD_12F_NEW);
+ Lcd_ClearSeg(_LCD_12G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_12A_NEW);
+ Lcd_DisplaySeg(_LCD_12B_NEW);
+ Lcd_ClearSeg(_LCD_12C_NEW);
+ Lcd_DisplaySeg(_LCD_12D_NEW);
+ Lcd_DisplaySeg(_LCD_12E_NEW);
+ Lcd_ClearSeg(_LCD_12F_NEW);
+ Lcd_DisplaySeg(_LCD_12G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_12A_NEW);
+ Lcd_DisplaySeg(_LCD_12B_NEW);
+ Lcd_DisplaySeg(_LCD_12C_NEW);
+ Lcd_DisplaySeg(_LCD_12D_NEW);
+ Lcd_ClearSeg(_LCD_12E_NEW);
+ Lcd_ClearSeg(_LCD_12F_NEW);
+ Lcd_DisplaySeg(_LCD_12G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_12A_NEW);
+ Lcd_DisplaySeg(_LCD_12B_NEW);
+ Lcd_DisplaySeg(_LCD_12C_NEW);
+ Lcd_ClearSeg(_LCD_12D_NEW);
+ Lcd_ClearSeg(_LCD_12E_NEW);
+ Lcd_DisplaySeg(_LCD_12F_NEW);
+ Lcd_DisplaySeg(_LCD_12G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_12A_NEW);
+ Lcd_ClearSeg(_LCD_12B_NEW);
+ Lcd_DisplaySeg(_LCD_12C_NEW);
+ Lcd_DisplaySeg(_LCD_12D_NEW);
+ Lcd_ClearSeg(_LCD_12E_NEW);
+ Lcd_DisplaySeg(_LCD_12F_NEW);
+ Lcd_DisplaySeg(_LCD_12G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_12A_NEW);
+ Lcd_ClearSeg(_LCD_12B_NEW);
+ Lcd_DisplaySeg(_LCD_12C_NEW);
+ Lcd_DisplaySeg(_LCD_12D_NEW);
+ Lcd_DisplaySeg(_LCD_12E_NEW);
+ Lcd_DisplaySeg(_LCD_12F_NEW);
+ Lcd_DisplaySeg(_LCD_12G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_12A_NEW);
+ Lcd_DisplaySeg(_LCD_12B_NEW);
+ Lcd_DisplaySeg(_LCD_12C_NEW);
+ Lcd_ClearSeg(_LCD_12D_NEW);
+ Lcd_ClearSeg(_LCD_12E_NEW);
+ Lcd_ClearSeg(_LCD_12F_NEW);
+ Lcd_ClearSeg(_LCD_12G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_12A_NEW);
+ Lcd_DisplaySeg(_LCD_12B_NEW);
+ Lcd_DisplaySeg(_LCD_12C_NEW);
+ Lcd_DisplaySeg(_LCD_12D_NEW);
+ Lcd_DisplaySeg(_LCD_12E_NEW);
+ Lcd_DisplaySeg(_LCD_12F_NEW);
+ Lcd_DisplaySeg(_LCD_12G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_12A_NEW);
+ Lcd_DisplaySeg(_LCD_12B_NEW);
+ Lcd_DisplaySeg(_LCD_12C_NEW);
+ Lcd_DisplaySeg(_LCD_12D_NEW);
+ Lcd_ClearSeg(_LCD_12E_NEW);
+ Lcd_DisplaySeg(_LCD_12F_NEW);
+ Lcd_DisplaySeg(_LCD_12G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 13:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_13A_NEW);
+ Lcd_DisplaySeg(_LCD_13B_NEW);
+ Lcd_DisplaySeg(_LCD_13C_NEW);
+ Lcd_DisplaySeg(_LCD_13D_NEW);
+ Lcd_DisplaySeg(_LCD_13E_NEW);
+ Lcd_DisplaySeg(_LCD_13F_NEW);
+ Lcd_ClearSeg(_LCD_13G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_13A_NEW);
+ Lcd_DisplaySeg(_LCD_13B_NEW);
+ Lcd_DisplaySeg(_LCD_13C_NEW);
+ Lcd_ClearSeg(_LCD_13D_NEW);
+ Lcd_ClearSeg(_LCD_13E_NEW);
+ Lcd_ClearSeg(_LCD_13F_NEW);
+ Lcd_ClearSeg(_LCD_13G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_13A_NEW);
+ Lcd_DisplaySeg(_LCD_13B_NEW);
+ Lcd_ClearSeg(_LCD_13C_NEW);
+ Lcd_DisplaySeg(_LCD_13D_NEW);
+ Lcd_DisplaySeg(_LCD_13E_NEW);
+ Lcd_ClearSeg(_LCD_13F_NEW);
+ Lcd_DisplaySeg(_LCD_13G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_13A_NEW);
+ Lcd_DisplaySeg(_LCD_13B_NEW);
+ Lcd_DisplaySeg(_LCD_13C_NEW);
+ Lcd_DisplaySeg(_LCD_13D_NEW);
+ Lcd_ClearSeg(_LCD_13E_NEW);
+ Lcd_ClearSeg(_LCD_13F_NEW);
+ Lcd_DisplaySeg(_LCD_13G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_13A_NEW);
+ Lcd_DisplaySeg(_LCD_13B_NEW);
+ Lcd_DisplaySeg(_LCD_13C_NEW);
+ Lcd_ClearSeg(_LCD_13D_NEW);
+ Lcd_ClearSeg(_LCD_13E_NEW);
+ Lcd_DisplaySeg(_LCD_13F_NEW);
+ Lcd_DisplaySeg(_LCD_13G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_13A_NEW);
+ Lcd_ClearSeg(_LCD_13B_NEW);
+ Lcd_DisplaySeg(_LCD_13C_NEW);
+ Lcd_DisplaySeg(_LCD_13D_NEW);
+ Lcd_ClearSeg(_LCD_13E_NEW);
+ Lcd_DisplaySeg(_LCD_13F_NEW);
+ Lcd_DisplaySeg(_LCD_13G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_13A_NEW);
+ Lcd_ClearSeg(_LCD_13B_NEW);
+ Lcd_DisplaySeg(_LCD_13C_NEW);
+ Lcd_DisplaySeg(_LCD_13D_NEW);
+ Lcd_DisplaySeg(_LCD_13E_NEW);
+ Lcd_DisplaySeg(_LCD_13F_NEW);
+ Lcd_DisplaySeg(_LCD_13G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_13A_NEW);
+ Lcd_DisplaySeg(_LCD_13B_NEW);
+ Lcd_DisplaySeg(_LCD_13C_NEW);
+ Lcd_ClearSeg(_LCD_13D_NEW);
+ Lcd_ClearSeg(_LCD_13E_NEW);
+ Lcd_ClearSeg(_LCD_13F_NEW);
+ Lcd_ClearSeg(_LCD_13G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_13A_NEW);
+ Lcd_DisplaySeg(_LCD_13B_NEW);
+ Lcd_DisplaySeg(_LCD_13C_NEW);
+ Lcd_DisplaySeg(_LCD_13D_NEW);
+ Lcd_DisplaySeg(_LCD_13E_NEW);
+ Lcd_DisplaySeg(_LCD_13F_NEW);
+ Lcd_DisplaySeg(_LCD_13G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_13A_NEW);
+ Lcd_DisplaySeg(_LCD_13B_NEW);
+ Lcd_DisplaySeg(_LCD_13C_NEW);
+ Lcd_DisplaySeg(_LCD_13D_NEW);
+ Lcd_ClearSeg(_LCD_13E_NEW);
+ Lcd_DisplaySeg(_LCD_13F_NEW);
+ Lcd_DisplaySeg(_LCD_13G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 14:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_14A_NEW);
+ Lcd_DisplaySeg(_LCD_14B_NEW);
+ Lcd_DisplaySeg(_LCD_14C_NEW);
+ Lcd_DisplaySeg(_LCD_14D_NEW);
+ Lcd_DisplaySeg(_LCD_14E_NEW);
+ Lcd_DisplaySeg(_LCD_14F_NEW);
+ Lcd_ClearSeg(_LCD_14G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_14A_NEW);
+ Lcd_DisplaySeg(_LCD_14B_NEW);
+ Lcd_DisplaySeg(_LCD_14C_NEW);
+ Lcd_ClearSeg(_LCD_14D_NEW);
+ Lcd_ClearSeg(_LCD_14E_NEW);
+ Lcd_ClearSeg(_LCD_14F_NEW);
+ Lcd_ClearSeg(_LCD_14G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_14A_NEW);
+ Lcd_DisplaySeg(_LCD_14B_NEW);
+ Lcd_ClearSeg(_LCD_14C_NEW);
+ Lcd_DisplaySeg(_LCD_14D_NEW);
+ Lcd_DisplaySeg(_LCD_14E_NEW);
+ Lcd_ClearSeg(_LCD_14F_NEW);
+ Lcd_DisplaySeg(_LCD_14G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_14A_NEW);
+ Lcd_DisplaySeg(_LCD_14B_NEW);
+ Lcd_DisplaySeg(_LCD_14C_NEW);
+ Lcd_DisplaySeg(_LCD_14D_NEW);
+ Lcd_ClearSeg(_LCD_14E_NEW);
+ Lcd_ClearSeg(_LCD_14F_NEW);
+ Lcd_DisplaySeg(_LCD_14G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_14A_NEW);
+ Lcd_DisplaySeg(_LCD_14B_NEW);
+ Lcd_DisplaySeg(_LCD_14C_NEW);
+ Lcd_ClearSeg(_LCD_14D_NEW);
+ Lcd_ClearSeg(_LCD_14E_NEW);
+ Lcd_DisplaySeg(_LCD_14F_NEW);
+ Lcd_DisplaySeg(_LCD_14G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_14A_NEW);
+ Lcd_ClearSeg(_LCD_14B_NEW);
+ Lcd_DisplaySeg(_LCD_14C_NEW);
+ Lcd_DisplaySeg(_LCD_14D_NEW);
+ Lcd_ClearSeg(_LCD_14E_NEW);
+ Lcd_DisplaySeg(_LCD_14F_NEW);
+ Lcd_DisplaySeg(_LCD_14G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_14A_NEW);
+ Lcd_ClearSeg(_LCD_14B_NEW);
+ Lcd_DisplaySeg(_LCD_14C_NEW);
+ Lcd_DisplaySeg(_LCD_14D_NEW);
+ Lcd_DisplaySeg(_LCD_14E_NEW);
+ Lcd_DisplaySeg(_LCD_14F_NEW);
+ Lcd_DisplaySeg(_LCD_14G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_14A_NEW);
+ Lcd_DisplaySeg(_LCD_14B_NEW);
+ Lcd_DisplaySeg(_LCD_14C_NEW);
+ Lcd_ClearSeg(_LCD_14D_NEW);
+ Lcd_ClearSeg(_LCD_14E_NEW);
+ Lcd_ClearSeg(_LCD_14F_NEW);
+ Lcd_ClearSeg(_LCD_14G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_14A_NEW);
+ Lcd_DisplaySeg(_LCD_14B_NEW);
+ Lcd_DisplaySeg(_LCD_14C_NEW);
+ Lcd_DisplaySeg(_LCD_14D_NEW);
+ Lcd_DisplaySeg(_LCD_14E_NEW);
+ Lcd_DisplaySeg(_LCD_14F_NEW);
+ Lcd_DisplaySeg(_LCD_14G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_14A_NEW);
+ Lcd_DisplaySeg(_LCD_14B_NEW);
+ Lcd_DisplaySeg(_LCD_14C_NEW);
+ Lcd_DisplaySeg(_LCD_14D_NEW);
+ Lcd_ClearSeg(_LCD_14E_NEW);
+ Lcd_DisplaySeg(_LCD_14F_NEW);
+ Lcd_DisplaySeg(_LCD_14G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 15:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_15A_NEW);
+ Lcd_DisplaySeg(_LCD_15B_NEW);
+ Lcd_DisplaySeg(_LCD_15C_NEW);
+ Lcd_DisplaySeg(_LCD_15D_NEW);
+ Lcd_DisplaySeg(_LCD_15E_NEW);
+ Lcd_DisplaySeg(_LCD_15F_NEW);
+ Lcd_ClearSeg(_LCD_15G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_15A_NEW);
+ Lcd_DisplaySeg(_LCD_15B_NEW);
+ Lcd_DisplaySeg(_LCD_15C_NEW);
+ Lcd_ClearSeg(_LCD_15D_NEW);
+ Lcd_ClearSeg(_LCD_15E_NEW);
+ Lcd_ClearSeg(_LCD_15F_NEW);
+ Lcd_ClearSeg(_LCD_15G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_15A_NEW);
+ Lcd_DisplaySeg(_LCD_15B_NEW);
+ Lcd_ClearSeg(_LCD_15C_NEW);
+ Lcd_DisplaySeg(_LCD_15D_NEW);
+ Lcd_DisplaySeg(_LCD_15E_NEW);
+ Lcd_ClearSeg(_LCD_15F_NEW);
+ Lcd_DisplaySeg(_LCD_15G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_15A_NEW);
+ Lcd_DisplaySeg(_LCD_15B_NEW);
+ Lcd_DisplaySeg(_LCD_15C_NEW);
+ Lcd_DisplaySeg(_LCD_15D_NEW);
+ Lcd_ClearSeg(_LCD_15E_NEW);
+ Lcd_ClearSeg(_LCD_15F_NEW);
+ Lcd_DisplaySeg(_LCD_15G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_15A_NEW);
+ Lcd_DisplaySeg(_LCD_15B_NEW);
+ Lcd_DisplaySeg(_LCD_15C_NEW);
+ Lcd_ClearSeg(_LCD_15D_NEW);
+ Lcd_ClearSeg(_LCD_15E_NEW);
+ Lcd_DisplaySeg(_LCD_15F_NEW);
+ Lcd_DisplaySeg(_LCD_15G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_15A_NEW);
+ Lcd_ClearSeg(_LCD_15B_NEW);
+ Lcd_DisplaySeg(_LCD_15C_NEW);
+ Lcd_DisplaySeg(_LCD_15D_NEW);
+ Lcd_ClearSeg(_LCD_15E_NEW);
+ Lcd_DisplaySeg(_LCD_15F_NEW);
+ Lcd_DisplaySeg(_LCD_15G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_15A_NEW);
+ Lcd_ClearSeg(_LCD_15B_NEW);
+ Lcd_DisplaySeg(_LCD_15C_NEW);
+ Lcd_DisplaySeg(_LCD_15D_NEW);
+ Lcd_DisplaySeg(_LCD_15E_NEW);
+ Lcd_DisplaySeg(_LCD_15F_NEW);
+ Lcd_DisplaySeg(_LCD_15G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_15A_NEW);
+ Lcd_DisplaySeg(_LCD_15B_NEW);
+ Lcd_DisplaySeg(_LCD_15C_NEW);
+ Lcd_ClearSeg(_LCD_15D_NEW);
+ Lcd_ClearSeg(_LCD_15E_NEW);
+ Lcd_ClearSeg(_LCD_15F_NEW);
+ Lcd_ClearSeg(_LCD_15G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_15A_NEW);
+ Lcd_DisplaySeg(_LCD_15B_NEW);
+ Lcd_DisplaySeg(_LCD_15C_NEW);
+ Lcd_DisplaySeg(_LCD_15D_NEW);
+ Lcd_DisplaySeg(_LCD_15E_NEW);
+ Lcd_DisplaySeg(_LCD_15F_NEW);
+ Lcd_DisplaySeg(_LCD_15G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_15A_NEW);
+ Lcd_DisplaySeg(_LCD_15B_NEW);
+ Lcd_DisplaySeg(_LCD_15C_NEW);
+ Lcd_DisplaySeg(_LCD_15D_NEW);
+ Lcd_ClearSeg(_LCD_15E_NEW);
+ Lcd_DisplaySeg(_LCD_15F_NEW);
+ Lcd_DisplaySeg(_LCD_15G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 16:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_16A_NEW);
+ Lcd_DisplaySeg(_LCD_16B_NEW);
+ Lcd_DisplaySeg(_LCD_16C_NEW);
+ Lcd_DisplaySeg(_LCD_16D_NEW);
+ Lcd_DisplaySeg(_LCD_16E_NEW);
+ Lcd_DisplaySeg(_LCD_16F_NEW);
+ Lcd_ClearSeg(_LCD_16G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_16A_NEW);
+ Lcd_DisplaySeg(_LCD_16B_NEW);
+ Lcd_DisplaySeg(_LCD_16C_NEW);
+ Lcd_ClearSeg(_LCD_16D_NEW);
+ Lcd_ClearSeg(_LCD_16E_NEW);
+ Lcd_ClearSeg(_LCD_16F_NEW);
+ Lcd_ClearSeg(_LCD_16G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_16A_NEW);
+ Lcd_DisplaySeg(_LCD_16B_NEW);
+ Lcd_ClearSeg(_LCD_16C_NEW);
+ Lcd_DisplaySeg(_LCD_16D_NEW);
+ Lcd_DisplaySeg(_LCD_16E_NEW);
+ Lcd_ClearSeg(_LCD_16F_NEW);
+ Lcd_DisplaySeg(_LCD_16G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_16A_NEW);
+ Lcd_DisplaySeg(_LCD_16B_NEW);
+ Lcd_DisplaySeg(_LCD_16C_NEW);
+ Lcd_DisplaySeg(_LCD_16D_NEW);
+ Lcd_ClearSeg(_LCD_16E_NEW);
+ Lcd_ClearSeg(_LCD_16F_NEW);
+ Lcd_DisplaySeg(_LCD_16G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_16A_NEW);
+ Lcd_DisplaySeg(_LCD_16B_NEW);
+ Lcd_DisplaySeg(_LCD_16C_NEW);
+ Lcd_ClearSeg(_LCD_16D_NEW);
+ Lcd_ClearSeg(_LCD_16E_NEW);
+ Lcd_DisplaySeg(_LCD_16F_NEW);
+ Lcd_DisplaySeg(_LCD_16G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_16A_NEW);
+ Lcd_ClearSeg(_LCD_16B_NEW);
+ Lcd_DisplaySeg(_LCD_16C_NEW);
+ Lcd_DisplaySeg(_LCD_16D_NEW);
+ Lcd_ClearSeg(_LCD_16E_NEW);
+ Lcd_DisplaySeg(_LCD_16F_NEW);
+ Lcd_DisplaySeg(_LCD_16G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_16A_NEW);
+ Lcd_ClearSeg(_LCD_16B_NEW);
+ Lcd_DisplaySeg(_LCD_16C_NEW);
+ Lcd_DisplaySeg(_LCD_16D_NEW);
+ Lcd_DisplaySeg(_LCD_16E_NEW);
+ Lcd_DisplaySeg(_LCD_16F_NEW);
+ Lcd_DisplaySeg(_LCD_16G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_16A_NEW);
+ Lcd_DisplaySeg(_LCD_16B_NEW);
+ Lcd_DisplaySeg(_LCD_16C_NEW);
+ Lcd_ClearSeg(_LCD_16D_NEW);
+ Lcd_ClearSeg(_LCD_16E_NEW);
+ Lcd_ClearSeg(_LCD_16F_NEW);
+ Lcd_ClearSeg(_LCD_16G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_16A_NEW);
+ Lcd_DisplaySeg(_LCD_16B_NEW);
+ Lcd_DisplaySeg(_LCD_16C_NEW);
+ Lcd_DisplaySeg(_LCD_16D_NEW);
+ Lcd_DisplaySeg(_LCD_16E_NEW);
+ Lcd_DisplaySeg(_LCD_16F_NEW);
+ Lcd_DisplaySeg(_LCD_16G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_16A_NEW);
+ Lcd_DisplaySeg(_LCD_16B_NEW);
+ Lcd_DisplaySeg(_LCD_16C_NEW);
+ Lcd_DisplaySeg(_LCD_16D_NEW);
+ Lcd_ClearSeg(_LCD_16E_NEW);
+ Lcd_DisplaySeg(_LCD_16F_NEW);
+ Lcd_DisplaySeg(_LCD_16G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 17:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_17A_NEW);
+ Lcd_DisplaySeg(_LCD_17B_NEW);
+ Lcd_DisplaySeg(_LCD_17C_NEW);
+ Lcd_DisplaySeg(_LCD_17D_NEW);
+ Lcd_DisplaySeg(_LCD_17E_NEW);
+ Lcd_DisplaySeg(_LCD_17F_NEW);
+ Lcd_ClearSeg(_LCD_17G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_17A_NEW);
+ Lcd_DisplaySeg(_LCD_17B_NEW);
+ Lcd_DisplaySeg(_LCD_17C_NEW);
+ Lcd_ClearSeg(_LCD_17D_NEW);
+ Lcd_ClearSeg(_LCD_17E_NEW);
+ Lcd_ClearSeg(_LCD_17F_NEW);
+ Lcd_ClearSeg(_LCD_17G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_17A_NEW);
+ Lcd_DisplaySeg(_LCD_17B_NEW);
+ Lcd_ClearSeg(_LCD_17C_NEW);
+ Lcd_DisplaySeg(_LCD_17D_NEW);
+ Lcd_DisplaySeg(_LCD_17E_NEW);
+ Lcd_ClearSeg(_LCD_17F_NEW);
+ Lcd_DisplaySeg(_LCD_17G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_17A_NEW);
+ Lcd_DisplaySeg(_LCD_17B_NEW);
+ Lcd_DisplaySeg(_LCD_17C_NEW);
+ Lcd_DisplaySeg(_LCD_17D_NEW);
+ Lcd_ClearSeg(_LCD_17E_NEW);
+ Lcd_ClearSeg(_LCD_17F_NEW);
+ Lcd_DisplaySeg(_LCD_17G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_17A_NEW);
+ Lcd_DisplaySeg(_LCD_17B_NEW);
+ Lcd_DisplaySeg(_LCD_17C_NEW);
+ Lcd_ClearSeg(_LCD_17D_NEW);
+ Lcd_ClearSeg(_LCD_17E_NEW);
+ Lcd_DisplaySeg(_LCD_17F_NEW);
+ Lcd_DisplaySeg(_LCD_17G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_17A_NEW);
+ Lcd_ClearSeg(_LCD_17B_NEW);
+ Lcd_DisplaySeg(_LCD_17C_NEW);
+ Lcd_DisplaySeg(_LCD_17D_NEW);
+ Lcd_ClearSeg(_LCD_17E_NEW);
+ Lcd_DisplaySeg(_LCD_17F_NEW);
+ Lcd_DisplaySeg(_LCD_17G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_17A_NEW);
+ Lcd_ClearSeg(_LCD_17B_NEW);
+ Lcd_DisplaySeg(_LCD_17C_NEW);
+ Lcd_DisplaySeg(_LCD_17D_NEW);
+ Lcd_DisplaySeg(_LCD_17E_NEW);
+ Lcd_DisplaySeg(_LCD_17F_NEW);
+ Lcd_DisplaySeg(_LCD_17G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_17A_NEW);
+ Lcd_DisplaySeg(_LCD_17B_NEW);
+ Lcd_DisplaySeg(_LCD_17C_NEW);
+ Lcd_ClearSeg(_LCD_17D_NEW);
+ Lcd_ClearSeg(_LCD_17E_NEW);
+ Lcd_ClearSeg(_LCD_17F_NEW);
+ Lcd_ClearSeg(_LCD_17G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_17A_NEW);
+ Lcd_DisplaySeg(_LCD_17B_NEW);
+ Lcd_DisplaySeg(_LCD_17C_NEW);
+ Lcd_DisplaySeg(_LCD_17D_NEW);
+ Lcd_DisplaySeg(_LCD_17E_NEW);
+ Lcd_DisplaySeg(_LCD_17F_NEW);
+ Lcd_DisplaySeg(_LCD_17G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_17A_NEW);
+ Lcd_DisplaySeg(_LCD_17B_NEW);
+ Lcd_DisplaySeg(_LCD_17C_NEW);
+ Lcd_DisplaySeg(_LCD_17D_NEW);
+ Lcd_ClearSeg(_LCD_17E_NEW);
+ Lcd_DisplaySeg(_LCD_17F_NEW);
+ Lcd_DisplaySeg(_LCD_17G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 18:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_18A_NEW);
+ Lcd_DisplaySeg(_LCD_18B_NEW);
+ Lcd_DisplaySeg(_LCD_18C_NEW);
+ Lcd_DisplaySeg(_LCD_18D_NEW);
+ Lcd_DisplaySeg(_LCD_18E_NEW);
+ Lcd_DisplaySeg(_LCD_18F_NEW);
+ Lcd_ClearSeg(_LCD_18G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_18A_NEW);
+ Lcd_DisplaySeg(_LCD_18B_NEW);
+ Lcd_DisplaySeg(_LCD_18C_NEW);
+ Lcd_ClearSeg(_LCD_18D_NEW);
+ Lcd_ClearSeg(_LCD_18E_NEW);
+ Lcd_ClearSeg(_LCD_18F_NEW);
+ Lcd_ClearSeg(_LCD_18G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_18A_NEW);
+ Lcd_DisplaySeg(_LCD_18B_NEW);
+ Lcd_ClearSeg(_LCD_18C_NEW);
+ Lcd_DisplaySeg(_LCD_18D_NEW);
+ Lcd_DisplaySeg(_LCD_18E_NEW);
+ Lcd_ClearSeg(_LCD_18F_NEW);
+ Lcd_DisplaySeg(_LCD_18G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_18A_NEW);
+ Lcd_DisplaySeg(_LCD_18B_NEW);
+ Lcd_DisplaySeg(_LCD_18C_NEW);
+ Lcd_DisplaySeg(_LCD_18D_NEW);
+ Lcd_ClearSeg(_LCD_18E_NEW);
+ Lcd_ClearSeg(_LCD_18F_NEW);
+ Lcd_DisplaySeg(_LCD_18G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_18A_NEW);
+ Lcd_DisplaySeg(_LCD_18B_NEW);
+ Lcd_DisplaySeg(_LCD_18C_NEW);
+ Lcd_ClearSeg(_LCD_18D_NEW);
+ Lcd_ClearSeg(_LCD_18E_NEW);
+ Lcd_DisplaySeg(_LCD_18F_NEW);
+ Lcd_DisplaySeg(_LCD_18G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_18A_NEW);
+ Lcd_ClearSeg(_LCD_18B_NEW);
+ Lcd_DisplaySeg(_LCD_18C_NEW);
+ Lcd_DisplaySeg(_LCD_18D_NEW);
+ Lcd_ClearSeg(_LCD_18E_NEW);
+ Lcd_DisplaySeg(_LCD_18F_NEW);
+ Lcd_DisplaySeg(_LCD_18G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_18A_NEW);
+ Lcd_ClearSeg(_LCD_18B_NEW);
+ Lcd_DisplaySeg(_LCD_18C_NEW);
+ Lcd_DisplaySeg(_LCD_18D_NEW);
+ Lcd_DisplaySeg(_LCD_18E_NEW);
+ Lcd_DisplaySeg(_LCD_18F_NEW);
+ Lcd_DisplaySeg(_LCD_18G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_18A_NEW);
+ Lcd_DisplaySeg(_LCD_18B_NEW);
+ Lcd_DisplaySeg(_LCD_18C_NEW);
+ Lcd_ClearSeg(_LCD_18D_NEW);
+ Lcd_ClearSeg(_LCD_18E_NEW);
+ Lcd_ClearSeg(_LCD_18F_NEW);
+ Lcd_ClearSeg(_LCD_18G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_18A_NEW);
+ Lcd_DisplaySeg(_LCD_18B_NEW);
+ Lcd_DisplaySeg(_LCD_18C_NEW);
+ Lcd_DisplaySeg(_LCD_18D_NEW);
+ Lcd_DisplaySeg(_LCD_18E_NEW);
+ Lcd_DisplaySeg(_LCD_18F_NEW);
+ Lcd_DisplaySeg(_LCD_18G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_18A_NEW);
+ Lcd_DisplaySeg(_LCD_18B_NEW);
+ Lcd_DisplaySeg(_LCD_18C_NEW);
+ Lcd_DisplaySeg(_LCD_18D_NEW);
+ Lcd_ClearSeg(_LCD_18E_NEW);
+ Lcd_DisplaySeg(_LCD_18F_NEW);
+ Lcd_DisplaySeg(_LCD_18G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 19:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_19A_NEW);
+ Lcd_DisplaySeg(_LCD_19B_NEW);
+ Lcd_DisplaySeg(_LCD_19C_NEW);
+ Lcd_DisplaySeg(_LCD_19D_NEW);
+ Lcd_DisplaySeg(_LCD_19E_NEW);
+ Lcd_DisplaySeg(_LCD_19F_NEW);
+ Lcd_ClearSeg(_LCD_19G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_19A_NEW);
+ Lcd_DisplaySeg(_LCD_19B_NEW);
+ Lcd_DisplaySeg(_LCD_19C_NEW);
+ Lcd_ClearSeg(_LCD_19D_NEW);
+ Lcd_ClearSeg(_LCD_19E_NEW);
+ Lcd_ClearSeg(_LCD_19F_NEW);
+ Lcd_ClearSeg(_LCD_19G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_19A_NEW);
+ Lcd_DisplaySeg(_LCD_19B_NEW);
+ Lcd_ClearSeg(_LCD_19C_NEW);
+ Lcd_DisplaySeg(_LCD_19D_NEW);
+ Lcd_DisplaySeg(_LCD_19E_NEW);
+ Lcd_ClearSeg(_LCD_19F_NEW);
+ Lcd_DisplaySeg(_LCD_19G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_19A_NEW);
+ Lcd_DisplaySeg(_LCD_19B_NEW);
+ Lcd_DisplaySeg(_LCD_19C_NEW);
+ Lcd_DisplaySeg(_LCD_19D_NEW);
+ Lcd_ClearSeg(_LCD_19E_NEW);
+ Lcd_ClearSeg(_LCD_19F_NEW);
+ Lcd_DisplaySeg(_LCD_19G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_19A_NEW);
+ Lcd_DisplaySeg(_LCD_19B_NEW);
+ Lcd_DisplaySeg(_LCD_19C_NEW);
+ Lcd_ClearSeg(_LCD_19D_NEW);
+ Lcd_ClearSeg(_LCD_19E_NEW);
+ Lcd_DisplaySeg(_LCD_19F_NEW);
+ Lcd_DisplaySeg(_LCD_19G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_19A_NEW);
+ Lcd_ClearSeg(_LCD_19B_NEW);
+ Lcd_DisplaySeg(_LCD_19C_NEW);
+ Lcd_DisplaySeg(_LCD_19D_NEW);
+ Lcd_ClearSeg(_LCD_19E_NEW);
+ Lcd_DisplaySeg(_LCD_19F_NEW);
+ Lcd_DisplaySeg(_LCD_19G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_19A_NEW);
+ Lcd_ClearSeg(_LCD_19B_NEW);
+ Lcd_DisplaySeg(_LCD_19C_NEW);
+ Lcd_DisplaySeg(_LCD_19D_NEW);
+ Lcd_DisplaySeg(_LCD_19E_NEW);
+ Lcd_DisplaySeg(_LCD_19F_NEW);
+ Lcd_DisplaySeg(_LCD_19G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_19A_NEW);
+ Lcd_DisplaySeg(_LCD_19B_NEW);
+ Lcd_DisplaySeg(_LCD_19C_NEW);
+ Lcd_ClearSeg(_LCD_19D_NEW);
+ Lcd_ClearSeg(_LCD_19E_NEW);
+ Lcd_ClearSeg(_LCD_19F_NEW);
+ Lcd_ClearSeg(_LCD_19G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_19A_NEW);
+ Lcd_DisplaySeg(_LCD_19B_NEW);
+ Lcd_DisplaySeg(_LCD_19C_NEW);
+ Lcd_DisplaySeg(_LCD_19D_NEW);
+ Lcd_DisplaySeg(_LCD_19E_NEW);
+ Lcd_DisplaySeg(_LCD_19F_NEW);
+ Lcd_DisplaySeg(_LCD_19G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_19A_NEW);
+ Lcd_DisplaySeg(_LCD_19B_NEW);
+ Lcd_DisplaySeg(_LCD_19C_NEW);
+ Lcd_DisplaySeg(_LCD_19D_NEW);
+ Lcd_ClearSeg(_LCD_19E_NEW);
+ Lcd_DisplaySeg(_LCD_19F_NEW);
+ Lcd_DisplaySeg(_LCD_19G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 20:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_20A_NEW);
+ Lcd_DisplaySeg(_LCD_20B_NEW);
+ Lcd_DisplaySeg(_LCD_20C_NEW);
+ Lcd_DisplaySeg(_LCD_20D_NEW);
+ Lcd_DisplaySeg(_LCD_20E_NEW);
+ Lcd_DisplaySeg(_LCD_20F_NEW);
+ Lcd_ClearSeg(_LCD_20G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_20A_NEW);
+ Lcd_DisplaySeg(_LCD_20B_NEW);
+ Lcd_DisplaySeg(_LCD_20C_NEW);
+ Lcd_ClearSeg(_LCD_20D_NEW);
+ Lcd_ClearSeg(_LCD_20E_NEW);
+ Lcd_ClearSeg(_LCD_20F_NEW);
+ Lcd_ClearSeg(_LCD_20G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_20A_NEW);
+ Lcd_DisplaySeg(_LCD_20B_NEW);
+ Lcd_ClearSeg(_LCD_20C_NEW);
+ Lcd_DisplaySeg(_LCD_20D_NEW);
+ Lcd_DisplaySeg(_LCD_20E_NEW);
+ Lcd_ClearSeg(_LCD_20F_NEW);
+ Lcd_DisplaySeg(_LCD_20G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_20A_NEW);
+ Lcd_DisplaySeg(_LCD_20B_NEW);
+ Lcd_DisplaySeg(_LCD_20C_NEW);
+ Lcd_DisplaySeg(_LCD_20D_NEW);
+ Lcd_ClearSeg(_LCD_20E_NEW);
+ Lcd_ClearSeg(_LCD_20F_NEW);
+ Lcd_DisplaySeg(_LCD_20G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_20A_NEW);
+ Lcd_DisplaySeg(_LCD_20B_NEW);
+ Lcd_DisplaySeg(_LCD_20C_NEW);
+ Lcd_ClearSeg(_LCD_20D_NEW);
+ Lcd_ClearSeg(_LCD_20E_NEW);
+ Lcd_DisplaySeg(_LCD_20F_NEW);
+ Lcd_DisplaySeg(_LCD_20G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_20A_NEW);
+ Lcd_ClearSeg(_LCD_20B_NEW);
+ Lcd_DisplaySeg(_LCD_20C_NEW);
+ Lcd_DisplaySeg(_LCD_20D_NEW);
+ Lcd_ClearSeg(_LCD_20E_NEW);
+ Lcd_DisplaySeg(_LCD_20F_NEW);
+ Lcd_DisplaySeg(_LCD_20G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_20A_NEW);
+ Lcd_ClearSeg(_LCD_20B_NEW);
+ Lcd_DisplaySeg(_LCD_20C_NEW);
+ Lcd_DisplaySeg(_LCD_20D_NEW);
+ Lcd_DisplaySeg(_LCD_20E_NEW);
+ Lcd_DisplaySeg(_LCD_20F_NEW);
+ Lcd_DisplaySeg(_LCD_20G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_20A_NEW);
+ Lcd_DisplaySeg(_LCD_20B_NEW);
+ Lcd_DisplaySeg(_LCD_20C_NEW);
+ Lcd_ClearSeg(_LCD_20D_NEW);
+ Lcd_ClearSeg(_LCD_20E_NEW);
+ Lcd_ClearSeg(_LCD_20F_NEW);
+ Lcd_ClearSeg(_LCD_20G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_20A_NEW);
+ Lcd_DisplaySeg(_LCD_20B_NEW);
+ Lcd_DisplaySeg(_LCD_20C_NEW);
+ Lcd_DisplaySeg(_LCD_20D_NEW);
+ Lcd_DisplaySeg(_LCD_20E_NEW);
+ Lcd_DisplaySeg(_LCD_20F_NEW);
+ Lcd_DisplaySeg(_LCD_20G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_20A_NEW);
+ Lcd_DisplaySeg(_LCD_20B_NEW);
+ Lcd_DisplaySeg(_LCD_20C_NEW);
+ Lcd_DisplaySeg(_LCD_20D_NEW);
+ Lcd_ClearSeg(_LCD_20E_NEW);
+ Lcd_DisplaySeg(_LCD_20F_NEW);
+ Lcd_DisplaySeg(_LCD_20G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 21:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_21A_NEW);
+ Lcd_DisplaySeg(_LCD_21B_NEW);
+ Lcd_DisplaySeg(_LCD_21C_NEW);
+ Lcd_DisplaySeg(_LCD_21D_NEW);
+ Lcd_DisplaySeg(_LCD_21E_NEW);
+ Lcd_DisplaySeg(_LCD_21F_NEW);
+ Lcd_ClearSeg(_LCD_21G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_21A_NEW);
+ Lcd_DisplaySeg(_LCD_21B_NEW);
+ Lcd_DisplaySeg(_LCD_21C_NEW);
+ Lcd_ClearSeg(_LCD_21D_NEW);
+ Lcd_ClearSeg(_LCD_21E_NEW);
+ Lcd_ClearSeg(_LCD_21F_NEW);
+ Lcd_ClearSeg(_LCD_21G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_21A_NEW);
+ Lcd_DisplaySeg(_LCD_21B_NEW);
+ Lcd_ClearSeg(_LCD_21C_NEW);
+ Lcd_DisplaySeg(_LCD_21D_NEW);
+ Lcd_DisplaySeg(_LCD_21E_NEW);
+ Lcd_ClearSeg(_LCD_21F_NEW);
+ Lcd_DisplaySeg(_LCD_21G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_21A_NEW);
+ Lcd_DisplaySeg(_LCD_21B_NEW);
+ Lcd_DisplaySeg(_LCD_21C_NEW);
+ Lcd_DisplaySeg(_LCD_21D_NEW);
+ Lcd_ClearSeg(_LCD_21E_NEW);
+ Lcd_ClearSeg(_LCD_21F_NEW);
+ Lcd_DisplaySeg(_LCD_21G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_21A_NEW);
+ Lcd_DisplaySeg(_LCD_21B_NEW);
+ Lcd_DisplaySeg(_LCD_21C_NEW);
+ Lcd_ClearSeg(_LCD_21D_NEW);
+ Lcd_ClearSeg(_LCD_21E_NEW);
+ Lcd_DisplaySeg(_LCD_21F_NEW);
+ Lcd_DisplaySeg(_LCD_21G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_21A_NEW);
+ Lcd_ClearSeg(_LCD_21B_NEW);
+ Lcd_DisplaySeg(_LCD_21C_NEW);
+ Lcd_DisplaySeg(_LCD_21D_NEW);
+ Lcd_ClearSeg(_LCD_21E_NEW);
+ Lcd_DisplaySeg(_LCD_21F_NEW);
+ Lcd_DisplaySeg(_LCD_21G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_21A_NEW);
+ Lcd_ClearSeg(_LCD_21B_NEW);
+ Lcd_DisplaySeg(_LCD_21C_NEW);
+ Lcd_DisplaySeg(_LCD_21D_NEW);
+ Lcd_DisplaySeg(_LCD_21E_NEW);
+ Lcd_DisplaySeg(_LCD_21F_NEW);
+ Lcd_DisplaySeg(_LCD_21G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_21A_NEW);
+ Lcd_DisplaySeg(_LCD_21B_NEW);
+ Lcd_DisplaySeg(_LCD_21C_NEW);
+ Lcd_ClearSeg(_LCD_21D_NEW);
+ Lcd_ClearSeg(_LCD_21E_NEW);
+ Lcd_ClearSeg(_LCD_21F_NEW);
+ Lcd_ClearSeg(_LCD_21G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_21A_NEW);
+ Lcd_DisplaySeg(_LCD_21B_NEW);
+ Lcd_DisplaySeg(_LCD_21C_NEW);
+ Lcd_DisplaySeg(_LCD_21D_NEW);
+ Lcd_DisplaySeg(_LCD_21E_NEW);
+ Lcd_DisplaySeg(_LCD_21F_NEW);
+ Lcd_DisplaySeg(_LCD_21G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_21A_NEW);
+ Lcd_DisplaySeg(_LCD_21B_NEW);
+ Lcd_DisplaySeg(_LCD_21C_NEW);
+ Lcd_DisplaySeg(_LCD_21D_NEW);
+ Lcd_ClearSeg(_LCD_21E_NEW);
+ Lcd_DisplaySeg(_LCD_21F_NEW);
+ Lcd_DisplaySeg(_LCD_21G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 22:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_22A_NEW);
+ Lcd_DisplaySeg(_LCD_22B_NEW);
+ Lcd_DisplaySeg(_LCD_22C_NEW);
+ Lcd_DisplaySeg(_LCD_22D_NEW);
+ Lcd_DisplaySeg(_LCD_22E_NEW);
+ Lcd_DisplaySeg(_LCD_22F_NEW);
+ Lcd_ClearSeg(_LCD_22G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_22A_NEW);
+ Lcd_DisplaySeg(_LCD_22B_NEW);
+ Lcd_DisplaySeg(_LCD_22C_NEW);
+ Lcd_ClearSeg(_LCD_22D_NEW);
+ Lcd_ClearSeg(_LCD_22E_NEW);
+ Lcd_ClearSeg(_LCD_22F_NEW);
+ Lcd_ClearSeg(_LCD_22G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_22A_NEW);
+ Lcd_DisplaySeg(_LCD_22B_NEW);
+ Lcd_ClearSeg(_LCD_22C_NEW);
+ Lcd_DisplaySeg(_LCD_22D_NEW);
+ Lcd_DisplaySeg(_LCD_22E_NEW);
+ Lcd_ClearSeg(_LCD_22F_NEW);
+ Lcd_DisplaySeg(_LCD_22G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_22A_NEW);
+ Lcd_DisplaySeg(_LCD_22B_NEW);
+ Lcd_DisplaySeg(_LCD_22C_NEW);
+ Lcd_DisplaySeg(_LCD_22D_NEW);
+ Lcd_ClearSeg(_LCD_22E_NEW);
+ Lcd_ClearSeg(_LCD_22F_NEW);
+ Lcd_DisplaySeg(_LCD_22G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_22A_NEW);
+ Lcd_DisplaySeg(_LCD_22B_NEW);
+ Lcd_DisplaySeg(_LCD_22C_NEW);
+ Lcd_ClearSeg(_LCD_22D_NEW);
+ Lcd_ClearSeg(_LCD_22E_NEW);
+ Lcd_DisplaySeg(_LCD_22F_NEW);
+ Lcd_DisplaySeg(_LCD_22G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_22A_NEW);
+ Lcd_ClearSeg(_LCD_22B_NEW);
+ Lcd_DisplaySeg(_LCD_22C_NEW);
+ Lcd_DisplaySeg(_LCD_22D_NEW);
+ Lcd_ClearSeg(_LCD_22E_NEW);
+ Lcd_DisplaySeg(_LCD_22F_NEW);
+ Lcd_DisplaySeg(_LCD_22G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_22A_NEW);
+ Lcd_ClearSeg(_LCD_22B_NEW);
+ Lcd_DisplaySeg(_LCD_22C_NEW);
+ Lcd_DisplaySeg(_LCD_22D_NEW);
+ Lcd_DisplaySeg(_LCD_22E_NEW);
+ Lcd_DisplaySeg(_LCD_22F_NEW);
+ Lcd_DisplaySeg(_LCD_22G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_22A_NEW);
+ Lcd_DisplaySeg(_LCD_22B_NEW);
+ Lcd_DisplaySeg(_LCD_22C_NEW);
+ Lcd_ClearSeg(_LCD_22D_NEW);
+ Lcd_ClearSeg(_LCD_22E_NEW);
+ Lcd_ClearSeg(_LCD_22F_NEW);
+ Lcd_ClearSeg(_LCD_22G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_22A_NEW);
+ Lcd_DisplaySeg(_LCD_22B_NEW);
+ Lcd_DisplaySeg(_LCD_22C_NEW);
+ Lcd_DisplaySeg(_LCD_22D_NEW);
+ Lcd_DisplaySeg(_LCD_22E_NEW);
+ Lcd_DisplaySeg(_LCD_22F_NEW);
+ Lcd_DisplaySeg(_LCD_22G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_22A_NEW);
+ Lcd_DisplaySeg(_LCD_22B_NEW);
+ Lcd_DisplaySeg(_LCD_22C_NEW);
+ Lcd_DisplaySeg(_LCD_22D_NEW);
+ Lcd_ClearSeg(_LCD_22E_NEW);
+ Lcd_DisplaySeg(_LCD_22F_NEW);
+ Lcd_DisplaySeg(_LCD_22G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 23:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_23A_NEW);
+ Lcd_DisplaySeg(_LCD_23B_NEW);
+ Lcd_DisplaySeg(_LCD_23C_NEW);
+ Lcd_DisplaySeg(_LCD_23D_NEW);
+ Lcd_DisplaySeg(_LCD_23E_NEW);
+ Lcd_DisplaySeg(_LCD_23F_NEW);
+ Lcd_ClearSeg(_LCD_23G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_23A_NEW);
+ Lcd_DisplaySeg(_LCD_23B_NEW);
+ Lcd_DisplaySeg(_LCD_23C_NEW);
+ Lcd_ClearSeg(_LCD_23D_NEW);
+ Lcd_ClearSeg(_LCD_23E_NEW);
+ Lcd_ClearSeg(_LCD_23F_NEW);
+ Lcd_ClearSeg(_LCD_23G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_23A_NEW);
+ Lcd_DisplaySeg(_LCD_23B_NEW);
+ Lcd_ClearSeg(_LCD_23C_NEW);
+ Lcd_DisplaySeg(_LCD_23D_NEW);
+ Lcd_DisplaySeg(_LCD_23E_NEW);
+ Lcd_ClearSeg(_LCD_23F_NEW);
+ Lcd_DisplaySeg(_LCD_23G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_23A_NEW);
+ Lcd_DisplaySeg(_LCD_23B_NEW);
+ Lcd_DisplaySeg(_LCD_23C_NEW);
+ Lcd_DisplaySeg(_LCD_23D_NEW);
+ Lcd_ClearSeg(_LCD_23E_NEW);
+ Lcd_ClearSeg(_LCD_23F_NEW);
+ Lcd_DisplaySeg(_LCD_23G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_23A_NEW);
+ Lcd_DisplaySeg(_LCD_23B_NEW);
+ Lcd_DisplaySeg(_LCD_23C_NEW);
+ Lcd_ClearSeg(_LCD_23D_NEW);
+ Lcd_ClearSeg(_LCD_23E_NEW);
+ Lcd_DisplaySeg(_LCD_23F_NEW);
+ Lcd_DisplaySeg(_LCD_23G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_23A_NEW);
+ Lcd_ClearSeg(_LCD_23B_NEW);
+ Lcd_DisplaySeg(_LCD_23C_NEW);
+ Lcd_DisplaySeg(_LCD_23D_NEW);
+ Lcd_ClearSeg(_LCD_23E_NEW);
+ Lcd_DisplaySeg(_LCD_23F_NEW);
+ Lcd_DisplaySeg(_LCD_23G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_23A_NEW);
+ Lcd_ClearSeg(_LCD_23B_NEW);
+ Lcd_DisplaySeg(_LCD_23C_NEW);
+ Lcd_DisplaySeg(_LCD_23D_NEW);
+ Lcd_DisplaySeg(_LCD_23E_NEW);
+ Lcd_DisplaySeg(_LCD_23F_NEW);
+ Lcd_DisplaySeg(_LCD_23G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_23A_NEW);
+ Lcd_DisplaySeg(_LCD_23B_NEW);
+ Lcd_DisplaySeg(_LCD_23C_NEW);
+ Lcd_ClearSeg(_LCD_23D_NEW);
+ Lcd_ClearSeg(_LCD_23E_NEW);
+ Lcd_ClearSeg(_LCD_23F_NEW);
+ Lcd_ClearSeg(_LCD_23G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_23A_NEW);
+ Lcd_DisplaySeg(_LCD_23B_NEW);
+ Lcd_DisplaySeg(_LCD_23C_NEW);
+ Lcd_DisplaySeg(_LCD_23D_NEW);
+ Lcd_DisplaySeg(_LCD_23E_NEW);
+ Lcd_DisplaySeg(_LCD_23F_NEW);
+ Lcd_DisplaySeg(_LCD_23G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_23A_NEW);
+ Lcd_DisplaySeg(_LCD_23B_NEW);
+ Lcd_DisplaySeg(_LCD_23C_NEW);
+ Lcd_DisplaySeg(_LCD_23D_NEW);
+ Lcd_ClearSeg(_LCD_23E_NEW);
+ Lcd_DisplaySeg(_LCD_23F_NEW);
+ Lcd_DisplaySeg(_LCD_23G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 24:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_24A_NEW);
+ Lcd_DisplaySeg(_LCD_24B_NEW);
+ Lcd_DisplaySeg(_LCD_24C_NEW);
+ Lcd_DisplaySeg(_LCD_24D_NEW);
+ Lcd_DisplaySeg(_LCD_24E_NEW);
+ Lcd_DisplaySeg(_LCD_24F_NEW);
+ Lcd_ClearSeg(_LCD_24G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_24A_NEW);
+ Lcd_DisplaySeg(_LCD_24B_NEW);
+ Lcd_DisplaySeg(_LCD_24C_NEW);
+ Lcd_ClearSeg(_LCD_24D_NEW);
+ Lcd_ClearSeg(_LCD_24E_NEW);
+ Lcd_ClearSeg(_LCD_24F_NEW);
+ Lcd_ClearSeg(_LCD_24G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_24A_NEW);
+ Lcd_DisplaySeg(_LCD_24B_NEW);
+ Lcd_ClearSeg(_LCD_24C_NEW);
+ Lcd_DisplaySeg(_LCD_24D_NEW);
+ Lcd_DisplaySeg(_LCD_24E_NEW);
+ Lcd_ClearSeg(_LCD_24F_NEW);
+ Lcd_DisplaySeg(_LCD_24G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_24A_NEW);
+ Lcd_DisplaySeg(_LCD_24B_NEW);
+ Lcd_DisplaySeg(_LCD_24C_NEW);
+ Lcd_DisplaySeg(_LCD_24D_NEW);
+ Lcd_ClearSeg(_LCD_24E_NEW);
+ Lcd_ClearSeg(_LCD_24F_NEW);
+ Lcd_DisplaySeg(_LCD_24G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_24A_NEW);
+ Lcd_DisplaySeg(_LCD_24B_NEW);
+ Lcd_DisplaySeg(_LCD_24C_NEW);
+ Lcd_ClearSeg(_LCD_24D_NEW);
+ Lcd_ClearSeg(_LCD_24E_NEW);
+ Lcd_DisplaySeg(_LCD_24F_NEW);
+ Lcd_DisplaySeg(_LCD_24G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_24A_NEW);
+ Lcd_ClearSeg(_LCD_24B_NEW);
+ Lcd_DisplaySeg(_LCD_24C_NEW);
+ Lcd_DisplaySeg(_LCD_24D_NEW);
+ Lcd_ClearSeg(_LCD_24E_NEW);
+ Lcd_DisplaySeg(_LCD_24F_NEW);
+ Lcd_DisplaySeg(_LCD_24G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_24A_NEW);
+ Lcd_ClearSeg(_LCD_24B_NEW);
+ Lcd_DisplaySeg(_LCD_24C_NEW);
+ Lcd_DisplaySeg(_LCD_24D_NEW);
+ Lcd_DisplaySeg(_LCD_24E_NEW);
+ Lcd_DisplaySeg(_LCD_24F_NEW);
+ Lcd_DisplaySeg(_LCD_24G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_24A_NEW);
+ Lcd_DisplaySeg(_LCD_24B_NEW);
+ Lcd_DisplaySeg(_LCD_24C_NEW);
+ Lcd_ClearSeg(_LCD_24D_NEW);
+ Lcd_ClearSeg(_LCD_24E_NEW);
+ Lcd_ClearSeg(_LCD_24F_NEW);
+ Lcd_ClearSeg(_LCD_24G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_24A_NEW);
+ Lcd_DisplaySeg(_LCD_24B_NEW);
+ Lcd_DisplaySeg(_LCD_24C_NEW);
+ Lcd_DisplaySeg(_LCD_24D_NEW);
+ Lcd_DisplaySeg(_LCD_24E_NEW);
+ Lcd_DisplaySeg(_LCD_24F_NEW);
+ Lcd_DisplaySeg(_LCD_24G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_24A_NEW);
+ Lcd_DisplaySeg(_LCD_24B_NEW);
+ Lcd_DisplaySeg(_LCD_24C_NEW);
+ Lcd_DisplaySeg(_LCD_24D_NEW);
+ Lcd_ClearSeg(_LCD_24E_NEW);
+ Lcd_DisplaySeg(_LCD_24F_NEW);
+ Lcd_DisplaySeg(_LCD_24G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 25:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_25A_NEW);
+ Lcd_DisplaySeg(_LCD_25B_NEW);
+ Lcd_DisplaySeg(_LCD_25C_NEW);
+ Lcd_DisplaySeg(_LCD_25D_NEW);
+ Lcd_DisplaySeg(_LCD_25E_NEW);
+ Lcd_DisplaySeg(_LCD_25F_NEW);
+ Lcd_ClearSeg(_LCD_25G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_25A_NEW);
+ Lcd_DisplaySeg(_LCD_25B_NEW);
+ Lcd_DisplaySeg(_LCD_25C_NEW);
+ Lcd_ClearSeg(_LCD_25D_NEW);
+ Lcd_ClearSeg(_LCD_25E_NEW);
+ Lcd_ClearSeg(_LCD_25F_NEW);
+ Lcd_ClearSeg(_LCD_25G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_25A_NEW);
+ Lcd_DisplaySeg(_LCD_25B_NEW);
+ Lcd_ClearSeg(_LCD_25C_NEW);
+ Lcd_DisplaySeg(_LCD_25D_NEW);
+ Lcd_DisplaySeg(_LCD_25E_NEW);
+ Lcd_ClearSeg(_LCD_25F_NEW);
+ Lcd_DisplaySeg(_LCD_25G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_25A_NEW);
+ Lcd_DisplaySeg(_LCD_25B_NEW);
+ Lcd_DisplaySeg(_LCD_25C_NEW);
+ Lcd_DisplaySeg(_LCD_25D_NEW);
+ Lcd_ClearSeg(_LCD_25E_NEW);
+ Lcd_ClearSeg(_LCD_25F_NEW);
+ Lcd_DisplaySeg(_LCD_25G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_25A_NEW);
+ Lcd_DisplaySeg(_LCD_25B_NEW);
+ Lcd_DisplaySeg(_LCD_25C_NEW);
+ Lcd_ClearSeg(_LCD_25D_NEW);
+ Lcd_ClearSeg(_LCD_25E_NEW);
+ Lcd_DisplaySeg(_LCD_25F_NEW);
+ Lcd_DisplaySeg(_LCD_25G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_25A_NEW);
+ Lcd_ClearSeg(_LCD_25B_NEW);
+ Lcd_DisplaySeg(_LCD_25C_NEW);
+ Lcd_DisplaySeg(_LCD_25D_NEW);
+ Lcd_ClearSeg(_LCD_25E_NEW);
+ Lcd_DisplaySeg(_LCD_25F_NEW);
+ Lcd_DisplaySeg(_LCD_25G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_25A_NEW);
+ Lcd_ClearSeg(_LCD_25B_NEW);
+ Lcd_DisplaySeg(_LCD_25C_NEW);
+ Lcd_DisplaySeg(_LCD_25D_NEW);
+ Lcd_DisplaySeg(_LCD_25E_NEW);
+ Lcd_DisplaySeg(_LCD_25F_NEW);
+ Lcd_DisplaySeg(_LCD_25G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_25A_NEW);
+ Lcd_DisplaySeg(_LCD_25B_NEW);
+ Lcd_DisplaySeg(_LCD_25C_NEW);
+ Lcd_ClearSeg(_LCD_25D_NEW);
+ Lcd_ClearSeg(_LCD_25E_NEW);
+ Lcd_ClearSeg(_LCD_25F_NEW);
+ Lcd_ClearSeg(_LCD_25G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_25A_NEW);
+ Lcd_DisplaySeg(_LCD_25B_NEW);
+ Lcd_DisplaySeg(_LCD_25C_NEW);
+ Lcd_DisplaySeg(_LCD_25D_NEW);
+ Lcd_DisplaySeg(_LCD_25E_NEW);
+ Lcd_DisplaySeg(_LCD_25F_NEW);
+ Lcd_DisplaySeg(_LCD_25G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_25A_NEW);
+ Lcd_DisplaySeg(_LCD_25B_NEW);
+ Lcd_DisplaySeg(_LCD_25C_NEW);
+ Lcd_DisplaySeg(_LCD_25D_NEW);
+ Lcd_ClearSeg(_LCD_25E_NEW);
+ Lcd_DisplaySeg(_LCD_25F_NEW);
+ Lcd_DisplaySeg(_LCD_25G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 26:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_26A_NEW);
+ Lcd_DisplaySeg(_LCD_26B_NEW);
+ Lcd_DisplaySeg(_LCD_26C_NEW);
+ Lcd_DisplaySeg(_LCD_26D_NEW);
+ Lcd_DisplaySeg(_LCD_26E_NEW);
+ Lcd_DisplaySeg(_LCD_26F_NEW);
+ Lcd_ClearSeg(_LCD_26G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_26A_NEW);
+ Lcd_DisplaySeg(_LCD_26B_NEW);
+ Lcd_DisplaySeg(_LCD_26C_NEW);
+ Lcd_ClearSeg(_LCD_26D_NEW);
+ Lcd_ClearSeg(_LCD_26E_NEW);
+ Lcd_ClearSeg(_LCD_26F_NEW);
+ Lcd_ClearSeg(_LCD_26G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_26A_NEW);
+ Lcd_DisplaySeg(_LCD_26B_NEW);
+ Lcd_ClearSeg(_LCD_26C_NEW);
+ Lcd_DisplaySeg(_LCD_26D_NEW);
+ Lcd_DisplaySeg(_LCD_26E_NEW);
+ Lcd_ClearSeg(_LCD_26F_NEW);
+ Lcd_DisplaySeg(_LCD_26G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_26A_NEW);
+ Lcd_DisplaySeg(_LCD_26B_NEW);
+ Lcd_DisplaySeg(_LCD_26C_NEW);
+ Lcd_DisplaySeg(_LCD_26D_NEW);
+ Lcd_ClearSeg(_LCD_26E_NEW);
+ Lcd_ClearSeg(_LCD_26F_NEW);
+ Lcd_DisplaySeg(_LCD_26G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_26A_NEW);
+ Lcd_DisplaySeg(_LCD_26B_NEW);
+ Lcd_DisplaySeg(_LCD_26C_NEW);
+ Lcd_ClearSeg(_LCD_26D_NEW);
+ Lcd_ClearSeg(_LCD_26E_NEW);
+ Lcd_DisplaySeg(_LCD_26F_NEW);
+ Lcd_DisplaySeg(_LCD_26G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_26A_NEW);
+ Lcd_ClearSeg(_LCD_26B_NEW);
+ Lcd_DisplaySeg(_LCD_26C_NEW);
+ Lcd_DisplaySeg(_LCD_26D_NEW);
+ Lcd_ClearSeg(_LCD_26E_NEW);
+ Lcd_DisplaySeg(_LCD_26F_NEW);
+ Lcd_DisplaySeg(_LCD_26G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_26A_NEW);
+ Lcd_ClearSeg(_LCD_26B_NEW);
+ Lcd_DisplaySeg(_LCD_26C_NEW);
+ Lcd_DisplaySeg(_LCD_26D_NEW);
+ Lcd_DisplaySeg(_LCD_26E_NEW);
+ Lcd_DisplaySeg(_LCD_26F_NEW);
+ Lcd_DisplaySeg(_LCD_26G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_26A_NEW);
+ Lcd_DisplaySeg(_LCD_26B_NEW);
+ Lcd_DisplaySeg(_LCD_26C_NEW);
+ Lcd_ClearSeg(_LCD_26D_NEW);
+ Lcd_ClearSeg(_LCD_26E_NEW);
+ Lcd_ClearSeg(_LCD_26F_NEW);
+ Lcd_ClearSeg(_LCD_26G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_26A_NEW);
+ Lcd_DisplaySeg(_LCD_26B_NEW);
+ Lcd_DisplaySeg(_LCD_26C_NEW);
+ Lcd_DisplaySeg(_LCD_26D_NEW);
+ Lcd_DisplaySeg(_LCD_26E_NEW);
+ Lcd_DisplaySeg(_LCD_26F_NEW);
+ Lcd_DisplaySeg(_LCD_26G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_26A_NEW);
+ Lcd_DisplaySeg(_LCD_26B_NEW);
+ Lcd_DisplaySeg(_LCD_26C_NEW);
+ Lcd_DisplaySeg(_LCD_26D_NEW);
+ Lcd_ClearSeg(_LCD_26E_NEW);
+ Lcd_DisplaySeg(_LCD_26F_NEW);
+ Lcd_DisplaySeg(_LCD_26G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 27:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_27A_NEW);
+ Lcd_DisplaySeg(_LCD_27B_NEW);
+ Lcd_DisplaySeg(_LCD_27C_NEW);
+ Lcd_DisplaySeg(_LCD_27D_NEW);
+ Lcd_DisplaySeg(_LCD_27E_NEW);
+ Lcd_DisplaySeg(_LCD_27F_NEW);
+ Lcd_ClearSeg(_LCD_27G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_27A_NEW);
+ Lcd_DisplaySeg(_LCD_27B_NEW);
+ Lcd_DisplaySeg(_LCD_27C_NEW);
+ Lcd_ClearSeg(_LCD_27D_NEW);
+ Lcd_ClearSeg(_LCD_27E_NEW);
+ Lcd_ClearSeg(_LCD_27F_NEW);
+ Lcd_ClearSeg(_LCD_27G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_27A_NEW);
+ Lcd_DisplaySeg(_LCD_27B_NEW);
+ Lcd_ClearSeg(_LCD_27C_NEW);
+ Lcd_DisplaySeg(_LCD_27D_NEW);
+ Lcd_DisplaySeg(_LCD_27E_NEW);
+ Lcd_ClearSeg(_LCD_27F_NEW);
+ Lcd_DisplaySeg(_LCD_27G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_27A_NEW);
+ Lcd_DisplaySeg(_LCD_27B_NEW);
+ Lcd_DisplaySeg(_LCD_27C_NEW);
+ Lcd_DisplaySeg(_LCD_27D_NEW);
+ Lcd_ClearSeg(_LCD_27E_NEW);
+ Lcd_ClearSeg(_LCD_27F_NEW);
+ Lcd_DisplaySeg(_LCD_27G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_27A_NEW);
+ Lcd_DisplaySeg(_LCD_27B_NEW);
+ Lcd_DisplaySeg(_LCD_27C_NEW);
+ Lcd_ClearSeg(_LCD_27D_NEW);
+ Lcd_ClearSeg(_LCD_27E_NEW);
+ Lcd_DisplaySeg(_LCD_27F_NEW);
+ Lcd_DisplaySeg(_LCD_27G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_27A_NEW);
+ Lcd_ClearSeg(_LCD_27B_NEW);
+ Lcd_DisplaySeg(_LCD_27C_NEW);
+ Lcd_DisplaySeg(_LCD_27D_NEW);
+ Lcd_ClearSeg(_LCD_27E_NEW);
+ Lcd_DisplaySeg(_LCD_27F_NEW);
+ Lcd_DisplaySeg(_LCD_27G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_27A_NEW);
+ Lcd_ClearSeg(_LCD_27B_NEW);
+ Lcd_DisplaySeg(_LCD_27C_NEW);
+ Lcd_DisplaySeg(_LCD_27D_NEW);
+ Lcd_DisplaySeg(_LCD_27E_NEW);
+ Lcd_DisplaySeg(_LCD_27F_NEW);
+ Lcd_DisplaySeg(_LCD_27G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_27A_NEW);
+ Lcd_DisplaySeg(_LCD_27B_NEW);
+ Lcd_DisplaySeg(_LCD_27C_NEW);
+ Lcd_ClearSeg(_LCD_27D_NEW);
+ Lcd_ClearSeg(_LCD_27E_NEW);
+ Lcd_ClearSeg(_LCD_27F_NEW);
+ Lcd_ClearSeg(_LCD_27G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_27A_NEW);
+ Lcd_DisplaySeg(_LCD_27B_NEW);
+ Lcd_DisplaySeg(_LCD_27C_NEW);
+ Lcd_DisplaySeg(_LCD_27D_NEW);
+ Lcd_DisplaySeg(_LCD_27E_NEW);
+ Lcd_DisplaySeg(_LCD_27F_NEW);
+ Lcd_DisplaySeg(_LCD_27G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_27A_NEW);
+ Lcd_DisplaySeg(_LCD_27B_NEW);
+ Lcd_DisplaySeg(_LCD_27C_NEW);
+ Lcd_DisplaySeg(_LCD_27D_NEW);
+ Lcd_ClearSeg(_LCD_27E_NEW);
+ Lcd_DisplaySeg(_LCD_27F_NEW);
+ Lcd_DisplaySeg(_LCD_27G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 28:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_28A_NEW);
+ Lcd_DisplaySeg(_LCD_28B_NEW);
+ Lcd_DisplaySeg(_LCD_28C_NEW);
+ Lcd_DisplaySeg(_LCD_28D_NEW);
+ Lcd_DisplaySeg(_LCD_28E_NEW);
+ Lcd_DisplaySeg(_LCD_28F_NEW);
+ Lcd_ClearSeg(_LCD_28G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_28A_NEW);
+ Lcd_DisplaySeg(_LCD_28B_NEW);
+ Lcd_DisplaySeg(_LCD_28C_NEW);
+ Lcd_ClearSeg(_LCD_28D_NEW);
+ Lcd_ClearSeg(_LCD_28E_NEW);
+ Lcd_ClearSeg(_LCD_28F_NEW);
+ Lcd_ClearSeg(_LCD_28G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_28A_NEW);
+ Lcd_DisplaySeg(_LCD_28B_NEW);
+ Lcd_ClearSeg(_LCD_28C_NEW);
+ Lcd_DisplaySeg(_LCD_28D_NEW);
+ Lcd_DisplaySeg(_LCD_28E_NEW);
+ Lcd_ClearSeg(_LCD_28F_NEW);
+ Lcd_DisplaySeg(_LCD_28G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_28A_NEW);
+ Lcd_DisplaySeg(_LCD_28B_NEW);
+ Lcd_DisplaySeg(_LCD_28C_NEW);
+ Lcd_DisplaySeg(_LCD_28D_NEW);
+ Lcd_ClearSeg(_LCD_28E_NEW);
+ Lcd_ClearSeg(_LCD_28F_NEW);
+ Lcd_DisplaySeg(_LCD_28G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_28A_NEW);
+ Lcd_DisplaySeg(_LCD_28B_NEW);
+ Lcd_DisplaySeg(_LCD_28C_NEW);
+ Lcd_ClearSeg(_LCD_28D_NEW);
+ Lcd_ClearSeg(_LCD_28E_NEW);
+ Lcd_DisplaySeg(_LCD_28F_NEW);
+ Lcd_DisplaySeg(_LCD_28G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_28A_NEW);
+ Lcd_ClearSeg(_LCD_28B_NEW);
+ Lcd_DisplaySeg(_LCD_28C_NEW);
+ Lcd_DisplaySeg(_LCD_28D_NEW);
+ Lcd_ClearSeg(_LCD_28E_NEW);
+ Lcd_DisplaySeg(_LCD_28F_NEW);
+ Lcd_DisplaySeg(_LCD_28G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_28A_NEW);
+ Lcd_ClearSeg(_LCD_28B_NEW);
+ Lcd_DisplaySeg(_LCD_28C_NEW);
+ Lcd_DisplaySeg(_LCD_28D_NEW);
+ Lcd_DisplaySeg(_LCD_28E_NEW);
+ Lcd_DisplaySeg(_LCD_28F_NEW);
+ Lcd_DisplaySeg(_LCD_28G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_28A_NEW);
+ Lcd_DisplaySeg(_LCD_28B_NEW);
+ Lcd_DisplaySeg(_LCD_28C_NEW);
+ Lcd_ClearSeg(_LCD_28D_NEW);
+ Lcd_ClearSeg(_LCD_28E_NEW);
+ Lcd_ClearSeg(_LCD_28F_NEW);
+ Lcd_ClearSeg(_LCD_28G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_28A_NEW);
+ Lcd_DisplaySeg(_LCD_28B_NEW);
+ Lcd_DisplaySeg(_LCD_28C_NEW);
+ Lcd_DisplaySeg(_LCD_28D_NEW);
+ Lcd_DisplaySeg(_LCD_28E_NEW);
+ Lcd_DisplaySeg(_LCD_28F_NEW);
+ Lcd_DisplaySeg(_LCD_28G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_28A_NEW);
+ Lcd_DisplaySeg(_LCD_28B_NEW);
+ Lcd_DisplaySeg(_LCD_28C_NEW);
+ Lcd_DisplaySeg(_LCD_28D_NEW);
+ Lcd_ClearSeg(_LCD_28E_NEW);
+ Lcd_DisplaySeg(_LCD_28F_NEW);
+ Lcd_DisplaySeg(_LCD_28G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 29:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_29A_NEW);
+ Lcd_DisplaySeg(_LCD_29B_NEW);
+ Lcd_DisplaySeg(_LCD_29C_NEW);
+ Lcd_DisplaySeg(_LCD_29D_NEW);
+ Lcd_DisplaySeg(_LCD_29E_NEW);
+ Lcd_DisplaySeg(_LCD_29F_NEW);
+ Lcd_ClearSeg(_LCD_29G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_29A_NEW);
+ Lcd_DisplaySeg(_LCD_29B_NEW);
+ Lcd_DisplaySeg(_LCD_29C_NEW);
+ Lcd_ClearSeg(_LCD_29D_NEW);
+ Lcd_ClearSeg(_LCD_29E_NEW);
+ Lcd_ClearSeg(_LCD_29F_NEW);
+ Lcd_ClearSeg(_LCD_29G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_29A_NEW);
+ Lcd_DisplaySeg(_LCD_29B_NEW);
+ Lcd_ClearSeg(_LCD_29C_NEW);
+ Lcd_DisplaySeg(_LCD_29D_NEW);
+ Lcd_DisplaySeg(_LCD_29E_NEW);
+ Lcd_ClearSeg(_LCD_29F_NEW);
+ Lcd_DisplaySeg(_LCD_29G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_29A_NEW);
+ Lcd_DisplaySeg(_LCD_29B_NEW);
+ Lcd_DisplaySeg(_LCD_29C_NEW);
+ Lcd_DisplaySeg(_LCD_29D_NEW);
+ Lcd_ClearSeg(_LCD_29E_NEW);
+ Lcd_ClearSeg(_LCD_29F_NEW);
+ Lcd_DisplaySeg(_LCD_29G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_29A_NEW);
+ Lcd_DisplaySeg(_LCD_29B_NEW);
+ Lcd_DisplaySeg(_LCD_29C_NEW);
+ Lcd_ClearSeg(_LCD_29D_NEW);
+ Lcd_ClearSeg(_LCD_29E_NEW);
+ Lcd_DisplaySeg(_LCD_29F_NEW);
+ Lcd_DisplaySeg(_LCD_29G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_29A_NEW);
+ Lcd_ClearSeg(_LCD_29B_NEW);
+ Lcd_DisplaySeg(_LCD_29C_NEW);
+ Lcd_DisplaySeg(_LCD_29D_NEW);
+ Lcd_ClearSeg(_LCD_29E_NEW);
+ Lcd_DisplaySeg(_LCD_29F_NEW);
+ Lcd_DisplaySeg(_LCD_29G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_29A_NEW);
+ Lcd_ClearSeg(_LCD_29B_NEW);
+ Lcd_DisplaySeg(_LCD_29C_NEW);
+ Lcd_DisplaySeg(_LCD_29D_NEW);
+ Lcd_DisplaySeg(_LCD_29E_NEW);
+ Lcd_DisplaySeg(_LCD_29F_NEW);
+ Lcd_DisplaySeg(_LCD_29G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_29A_NEW);
+ Lcd_DisplaySeg(_LCD_29B_NEW);
+ Lcd_DisplaySeg(_LCD_29C_NEW);
+ Lcd_ClearSeg(_LCD_29D_NEW);
+ Lcd_ClearSeg(_LCD_29E_NEW);
+ Lcd_ClearSeg(_LCD_29F_NEW);
+ Lcd_ClearSeg(_LCD_29G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_29A_NEW);
+ Lcd_DisplaySeg(_LCD_29B_NEW);
+ Lcd_DisplaySeg(_LCD_29C_NEW);
+ Lcd_DisplaySeg(_LCD_29D_NEW);
+ Lcd_DisplaySeg(_LCD_29E_NEW);
+ Lcd_DisplaySeg(_LCD_29F_NEW);
+ Lcd_DisplaySeg(_LCD_29G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_29A_NEW);
+ Lcd_DisplaySeg(_LCD_29B_NEW);
+ Lcd_DisplaySeg(_LCD_29C_NEW);
+ Lcd_DisplaySeg(_LCD_29D_NEW);
+ Lcd_ClearSeg(_LCD_29E_NEW);
+ Lcd_DisplaySeg(_LCD_29F_NEW);
+ Lcd_DisplaySeg(_LCD_29G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 30:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_30A_NEW);
+ Lcd_DisplaySeg(_LCD_30B_NEW);
+ Lcd_DisplaySeg(_LCD_30C_NEW);
+ Lcd_DisplaySeg(_LCD_30D_NEW);
+ Lcd_DisplaySeg(_LCD_30E_NEW);
+ Lcd_DisplaySeg(_LCD_30F_NEW);
+ Lcd_ClearSeg(_LCD_30G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_30A_NEW);
+ Lcd_DisplaySeg(_LCD_30B_NEW);
+ Lcd_DisplaySeg(_LCD_30C_NEW);
+ Lcd_ClearSeg(_LCD_30D_NEW);
+ Lcd_ClearSeg(_LCD_30E_NEW);
+ Lcd_ClearSeg(_LCD_30F_NEW);
+ Lcd_ClearSeg(_LCD_30G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_30A_NEW);
+ Lcd_DisplaySeg(_LCD_30B_NEW);
+ Lcd_ClearSeg(_LCD_30C_NEW);
+ Lcd_DisplaySeg(_LCD_30D_NEW);
+ Lcd_DisplaySeg(_LCD_30E_NEW);
+ Lcd_ClearSeg(_LCD_30F_NEW);
+ Lcd_DisplaySeg(_LCD_30G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_30A_NEW);
+ Lcd_DisplaySeg(_LCD_30B_NEW);
+ Lcd_DisplaySeg(_LCD_30C_NEW);
+ Lcd_DisplaySeg(_LCD_30D_NEW);
+ Lcd_ClearSeg(_LCD_30E_NEW);
+ Lcd_ClearSeg(_LCD_30F_NEW);
+ Lcd_DisplaySeg(_LCD_30G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_30A_NEW);
+ Lcd_DisplaySeg(_LCD_30B_NEW);
+ Lcd_DisplaySeg(_LCD_30C_NEW);
+ Lcd_ClearSeg(_LCD_30D_NEW);
+ Lcd_ClearSeg(_LCD_30E_NEW);
+ Lcd_DisplaySeg(_LCD_30F_NEW);
+ Lcd_DisplaySeg(_LCD_30G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_30A_NEW);
+ Lcd_ClearSeg(_LCD_30B_NEW);
+ Lcd_DisplaySeg(_LCD_30C_NEW);
+ Lcd_DisplaySeg(_LCD_30D_NEW);
+ Lcd_ClearSeg(_LCD_30E_NEW);
+ Lcd_DisplaySeg(_LCD_30F_NEW);
+ Lcd_DisplaySeg(_LCD_30G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_30A_NEW);
+ Lcd_ClearSeg(_LCD_30B_NEW);
+ Lcd_DisplaySeg(_LCD_30C_NEW);
+ Lcd_DisplaySeg(_LCD_30D_NEW);
+ Lcd_DisplaySeg(_LCD_30E_NEW);
+ Lcd_DisplaySeg(_LCD_30F_NEW);
+ Lcd_DisplaySeg(_LCD_30G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_30A_NEW);
+ Lcd_DisplaySeg(_LCD_30B_NEW);
+ Lcd_DisplaySeg(_LCD_30C_NEW);
+ Lcd_ClearSeg(_LCD_30D_NEW);
+ Lcd_ClearSeg(_LCD_30E_NEW);
+ Lcd_ClearSeg(_LCD_30F_NEW);
+ Lcd_ClearSeg(_LCD_30G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_30A_NEW);
+ Lcd_DisplaySeg(_LCD_30B_NEW);
+ Lcd_DisplaySeg(_LCD_30C_NEW);
+ Lcd_DisplaySeg(_LCD_30D_NEW);
+ Lcd_DisplaySeg(_LCD_30E_NEW);
+ Lcd_DisplaySeg(_LCD_30F_NEW);
+ Lcd_DisplaySeg(_LCD_30G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_30A_NEW);
+ Lcd_DisplaySeg(_LCD_30B_NEW);
+ Lcd_DisplaySeg(_LCD_30C_NEW);
+ Lcd_DisplaySeg(_LCD_30D_NEW);
+ Lcd_ClearSeg(_LCD_30E_NEW);
+ Lcd_DisplaySeg(_LCD_30F_NEW);
+ Lcd_DisplaySeg(_LCD_30G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+ case 31:
+ switch(Digit)
+ {
+ case 0:
+ Lcd_DisplaySeg(_LCD_31A_NEW);
+ Lcd_DisplaySeg(_LCD_31B_NEW);
+ Lcd_DisplaySeg(_LCD_31C_NEW);
+ Lcd_DisplaySeg(_LCD_31D_NEW);
+ Lcd_DisplaySeg(_LCD_31E_NEW);
+ Lcd_DisplaySeg(_LCD_31F_NEW);
+ Lcd_ClearSeg(_LCD_31G_NEW);
+ break;
+ case 1:
+ Lcd_ClearSeg(_LCD_31A_NEW);
+ Lcd_DisplaySeg(_LCD_31B_NEW);
+ Lcd_DisplaySeg(_LCD_31C_NEW);
+ Lcd_ClearSeg(_LCD_31D_NEW);
+ Lcd_ClearSeg(_LCD_31E_NEW);
+ Lcd_ClearSeg(_LCD_31F_NEW);
+ Lcd_ClearSeg(_LCD_31G_NEW);
+ break;
+ case 2:
+ Lcd_DisplaySeg(_LCD_31A_NEW);
+ Lcd_DisplaySeg(_LCD_31B_NEW);
+ Lcd_ClearSeg(_LCD_31C_NEW);
+ Lcd_DisplaySeg(_LCD_31D_NEW);
+ Lcd_DisplaySeg(_LCD_31E_NEW);
+ Lcd_ClearSeg(_LCD_31F_NEW);
+ Lcd_DisplaySeg(_LCD_31G_NEW);
+ break;
+ case 3:
+ Lcd_DisplaySeg(_LCD_31A_NEW);
+ Lcd_DisplaySeg(_LCD_31B_NEW);
+ Lcd_DisplaySeg(_LCD_31C_NEW);
+ Lcd_DisplaySeg(_LCD_31D_NEW);
+ Lcd_ClearSeg(_LCD_31E_NEW);
+ Lcd_ClearSeg(_LCD_31F_NEW);
+ Lcd_DisplaySeg(_LCD_31G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_31A_NEW);
+ Lcd_DisplaySeg(_LCD_31B_NEW);
+ Lcd_DisplaySeg(_LCD_31C_NEW);
+ Lcd_ClearSeg(_LCD_31D_NEW);
+ Lcd_ClearSeg(_LCD_31E_NEW);
+ Lcd_DisplaySeg(_LCD_31F_NEW);
+ Lcd_DisplaySeg(_LCD_31G_NEW);
+ break;
+ case 5:
+ Lcd_DisplaySeg(_LCD_31A_NEW);
+ Lcd_ClearSeg(_LCD_31B_NEW);
+ Lcd_DisplaySeg(_LCD_31C_NEW);
+ Lcd_DisplaySeg(_LCD_31D_NEW);
+ Lcd_ClearSeg(_LCD_31E_NEW);
+ Lcd_DisplaySeg(_LCD_31F_NEW);
+ Lcd_DisplaySeg(_LCD_31G_NEW);
+ break;
+ case 6:
+ Lcd_DisplaySeg(_LCD_31A_NEW);
+ Lcd_ClearSeg(_LCD_31B_NEW);
+ Lcd_DisplaySeg(_LCD_31C_NEW);
+ Lcd_DisplaySeg(_LCD_31D_NEW);
+ Lcd_DisplaySeg(_LCD_31E_NEW);
+ Lcd_DisplaySeg(_LCD_31F_NEW);
+ Lcd_DisplaySeg(_LCD_31G_NEW);
+ break;
+ case 7:
+ Lcd_DisplaySeg(_LCD_31A_NEW);
+ Lcd_DisplaySeg(_LCD_31B_NEW);
+ Lcd_DisplaySeg(_LCD_31C_NEW);
+ Lcd_ClearSeg(_LCD_31D_NEW);
+ Lcd_ClearSeg(_LCD_31E_NEW);
+ Lcd_ClearSeg(_LCD_31F_NEW);
+ Lcd_ClearSeg(_LCD_31G_NEW);
+ break;
+ case 8:
+ Lcd_DisplaySeg(_LCD_31A_NEW);
+ Lcd_DisplaySeg(_LCD_31B_NEW);
+ Lcd_DisplaySeg(_LCD_31C_NEW);
+ Lcd_DisplaySeg(_LCD_31D_NEW);
+ Lcd_DisplaySeg(_LCD_31E_NEW);
+ Lcd_DisplaySeg(_LCD_31F_NEW);
+ Lcd_DisplaySeg(_LCD_31G_NEW);
+ break;
+ case 9:
+ Lcd_DisplaySeg(_LCD_31A_NEW);
+ Lcd_DisplaySeg(_LCD_31B_NEW);
+ Lcd_DisplaySeg(_LCD_31C_NEW);
+ Lcd_DisplaySeg(_LCD_31D_NEW);
+ Lcd_ClearSeg(_LCD_31E_NEW);
+ Lcd_DisplaySeg(_LCD_31F_NEW);
+ Lcd_DisplaySeg(_LCD_31G_NEW);
+ break;
+ default:
+ break;
+ }
+ break;
+// case 32:
+// switch(Digit)
+// {
+// case 0:
+// Lcd_DisplaySeg(_LCD_32A);
+// Lcd_DisplaySeg(_LCD_32B);
+// Lcd_DisplaySeg(_LCD_32C);
+// Lcd_DisplaySeg(_LCD_32D);
+// Lcd_DisplaySeg(_LCD_32E);
+// Lcd_DisplaySeg(_LCD_32F);
+// Lcd_ClearSeg(_LCD_32G);
+// break;
+// case 1:
+// Lcd_ClearSeg(_LCD_32A);
+// Lcd_DisplaySeg(_LCD_32B);
+// Lcd_DisplaySeg(_LCD_32C);
+// Lcd_ClearSeg(_LCD_32D);
+// Lcd_ClearSeg(_LCD_32E);
+// Lcd_ClearSeg(_LCD_32F);
+// Lcd_ClearSeg(_LCD_32G);
+// break;
+// case 2:
+// Lcd_DisplaySeg(_LCD_32A);
+// Lcd_DisplaySeg(_LCD_32B);
+// Lcd_ClearSeg(_LCD_32C);
+// Lcd_DisplaySeg(_LCD_32D);
+// Lcd_DisplaySeg(_LCD_32E);
+// Lcd_ClearSeg(_LCD_32F);
+// Lcd_DisplaySeg(_LCD_32G);
+// break;
+// case 3:
+// Lcd_DisplaySeg(_LCD_32A);
+// Lcd_DisplaySeg(_LCD_32B);
+// Lcd_DisplaySeg(_LCD_32C);
+// Lcd_DisplaySeg(_LCD_32D);
+// Lcd_ClearSeg(_LCD_32E);
+// Lcd_ClearSeg(_LCD_32F);
+// Lcd_DisplaySeg(_LCD_32G);
+// break;
+// case 4:
+// Lcd_ClearSeg(_LCD_32A);
+// Lcd_DisplaySeg(_LCD_32B);
+// Lcd_DisplaySeg(_LCD_32C);
+// Lcd_ClearSeg(_LCD_32D);
+// Lcd_ClearSeg(_LCD_32E);
+// Lcd_DisplaySeg(_LCD_32F);
+// Lcd_DisplaySeg(_LCD_32G);
+// break;
+// case 5:
+// Lcd_DisplaySeg(_LCD_32A);
+// Lcd_ClearSeg(_LCD_32B);
+// Lcd_DisplaySeg(_LCD_32C);
+// Lcd_DisplaySeg(_LCD_32D);
+// Lcd_ClearSeg(_LCD_32E);
+// Lcd_DisplaySeg(_LCD_32F);
+// Lcd_DisplaySeg(_LCD_32G);
+// break;
+// case 6:
+// Lcd_DisplaySeg(_LCD_32A);
+// Lcd_ClearSeg(_LCD_32B);
+// Lcd_DisplaySeg(_LCD_32C);
+// Lcd_DisplaySeg(_LCD_32D);
+// Lcd_DisplaySeg(_LCD_32E);
+// Lcd_DisplaySeg(_LCD_32F);
+// Lcd_DisplaySeg(_LCD_32G);
+// break;
+// case 7:
+// Lcd_DisplaySeg(_LCD_32A);
+// Lcd_DisplaySeg(_LCD_32B);
+// Lcd_DisplaySeg(_LCD_32C);
+// Lcd_ClearSeg(_LCD_32D);
+// Lcd_ClearSeg(_LCD_32E);
+// Lcd_ClearSeg(_LCD_32F);
+// Lcd_ClearSeg(_LCD_32G);
+// break;
+// case 8:
+// Lcd_DisplaySeg(_LCD_32A);
+// Lcd_DisplaySeg(_LCD_32B);
+// Lcd_DisplaySeg(_LCD_32C);
+// Lcd_DisplaySeg(_LCD_32D);
+// Lcd_DisplaySeg(_LCD_32E);
+// Lcd_DisplaySeg(_LCD_32F);
+// Lcd_DisplaySeg(_LCD_32G);
+// break;
+// case 9:
+// Lcd_DisplaySeg(_LCD_32A);
+// Lcd_DisplaySeg(_LCD_32B);
+// Lcd_DisplaySeg(_LCD_32C);
+// Lcd_DisplaySeg(_LCD_32D);
+// Lcd_ClearSeg(_LCD_32E);
+// Lcd_DisplaySeg(_LCD_32F);
+// Lcd_DisplaySeg(_LCD_32G);
+// break;
+// default:
+// break;
+// }
+// break;
+// case 33:
+// switch(Digit)
+// {
+// case 0:
+// Lcd_DisplaySeg(_LCD_33A);
+// Lcd_DisplaySeg(_LCD_33B);
+// Lcd_DisplaySeg(_LCD_33C);
+// Lcd_DisplaySeg(_LCD_33D);
+// Lcd_DisplaySeg(_LCD_33E);
+// Lcd_DisplaySeg(_LCD_33F);
+// Lcd_ClearSeg(_LCD_33G);
+// break;
+// case 1:
+// Lcd_ClearSeg(_LCD_33A);
+// Lcd_DisplaySeg(_LCD_33B);
+// Lcd_DisplaySeg(_LCD_33C);
+// Lcd_ClearSeg(_LCD_33D);
+// Lcd_ClearSeg(_LCD_33E);
+// Lcd_ClearSeg(_LCD_33F);
+// Lcd_ClearSeg(_LCD_33G);
+// break;
+// case 2:
+// Lcd_DisplaySeg(_LCD_33A);
+// Lcd_DisplaySeg(_LCD_33B);
+// Lcd_ClearSeg(_LCD_33C);
+// Lcd_DisplaySeg(_LCD_33D);
+// Lcd_DisplaySeg(_LCD_33E);
+// Lcd_ClearSeg(_LCD_33F);
+// Lcd_DisplaySeg(_LCD_33G);
+// break;
+// case 3:
+// Lcd_DisplaySeg(_LCD_33A);
+// Lcd_DisplaySeg(_LCD_33B);
+// Lcd_DisplaySeg(_LCD_33C);
+// Lcd_DisplaySeg(_LCD_33D);
+// Lcd_ClearSeg(_LCD_33E);
+// Lcd_ClearSeg(_LCD_33F);
+// Lcd_DisplaySeg(_LCD_33G);
+// break;
+// case 4:
+// Lcd_ClearSeg(_LCD_33A);
+// Lcd_DisplaySeg(_LCD_33B);
+// Lcd_DisplaySeg(_LCD_33C);
+// Lcd_ClearSeg(_LCD_33D);
+// Lcd_ClearSeg(_LCD_33E);
+// Lcd_DisplaySeg(_LCD_33F);
+// Lcd_DisplaySeg(_LCD_33G);
+// break;
+// case 5:
+// Lcd_DisplaySeg(_LCD_33A);
+// Lcd_ClearSeg(_LCD_33B);
+// Lcd_DisplaySeg(_LCD_33C);
+// Lcd_DisplaySeg(_LCD_33D);
+// Lcd_ClearSeg(_LCD_33E);
+// Lcd_DisplaySeg(_LCD_33F);
+// Lcd_DisplaySeg(_LCD_33G);
+// break;
+// case 6:
+// Lcd_DisplaySeg(_LCD_33A);
+// Lcd_ClearSeg(_LCD_33B);
+// Lcd_DisplaySeg(_LCD_33C);
+// Lcd_DisplaySeg(_LCD_33D);
+// Lcd_DisplaySeg(_LCD_33E);
+// Lcd_DisplaySeg(_LCD_33F);
+// Lcd_DisplaySeg(_LCD_33G);
+// break;
+// case 7:
+// Lcd_DisplaySeg(_LCD_33A);
+// Lcd_DisplaySeg(_LCD_33B);
+// Lcd_DisplaySeg(_LCD_33C);
+// Lcd_ClearSeg(_LCD_33D);
+// Lcd_ClearSeg(_LCD_33E);
+// Lcd_ClearSeg(_LCD_33F);
+// Lcd_ClearSeg(_LCD_33G);
+// break;
+// case 8:
+// Lcd_DisplaySeg(_LCD_33A);
+// Lcd_DisplaySeg(_LCD_33B);
+// Lcd_DisplaySeg(_LCD_33C);
+// Lcd_DisplaySeg(_LCD_33D);
+// Lcd_DisplaySeg(_LCD_33E);
+// Lcd_DisplaySeg(_LCD_33F);
+// Lcd_DisplaySeg(_LCD_33G);
+// break;
+// case 9:
+// Lcd_DisplaySeg(_LCD_33A);
+// Lcd_DisplaySeg(_LCD_33B);
+// Lcd_DisplaySeg(_LCD_33C);
+// Lcd_DisplaySeg(_LCD_33D);
+// Lcd_ClearSeg(_LCD_33E);
+// Lcd_DisplaySeg(_LCD_33F);
+// Lcd_DisplaySeg(_LCD_33G);
+// break;
+// default:
+// break;
+// }
+// break;
+
+ default:
+ break;
+ }
+}
+void LCD_ClearDigit_NEW(unsigned char Position)
+ {
+ switch(Position)
+ {
+ case 1:
+ Lcd_ClearSeg(_LCD_1A_NEW);
+ Lcd_ClearSeg(_LCD_1B_NEW);
+ Lcd_ClearSeg(_LCD_1C_NEW);
+ Lcd_ClearSeg(_LCD_1D_NEW);
+ Lcd_ClearSeg(_LCD_1E_NEW);
+ Lcd_ClearSeg(_LCD_1F_NEW);
+ Lcd_ClearSeg(_LCD_1G_NEW);
+ break;
+ case 2:
+ Lcd_ClearSeg(_LCD_2A_NEW);
+ Lcd_ClearSeg(_LCD_2B_NEW);
+ Lcd_ClearSeg(_LCD_2C_NEW);
+ Lcd_ClearSeg(_LCD_2D_NEW);
+ Lcd_ClearSeg(_LCD_2E_NEW);
+ Lcd_ClearSeg(_LCD_2F_NEW);
+ Lcd_ClearSeg(_LCD_2G_NEW);
+ break;
+ case 3:
+ Lcd_ClearSeg(_LCD_3A_NEW);
+ Lcd_ClearSeg(_LCD_3B_NEW);
+ Lcd_ClearSeg(_LCD_3C_NEW);
+ Lcd_ClearSeg(_LCD_3D_NEW);
+ Lcd_ClearSeg(_LCD_3E_NEW);
+ Lcd_ClearSeg(_LCD_3F_NEW);
+ Lcd_ClearSeg(_LCD_3G_NEW);
+ break;
+ case 4:
+ Lcd_ClearSeg(_LCD_4A_NEW);
+ Lcd_ClearSeg(_LCD_4B_NEW);
+ Lcd_ClearSeg(_LCD_4C_NEW);
+ Lcd_ClearSeg(_LCD_4D_NEW);
+ Lcd_ClearSeg(_LCD_4E_NEW);
+ Lcd_ClearSeg(_LCD_4F_NEW);
+ Lcd_ClearSeg(_LCD_4G_NEW);
+ break;
+ case 5:
+ Lcd_ClearSeg(_LCD_5A_NEW);
+ Lcd_ClearSeg(_LCD_5B_NEW);
+ Lcd_ClearSeg(_LCD_5C_NEW);
+ Lcd_ClearSeg(_LCD_5D_NEW);
+ Lcd_ClearSeg(_LCD_5E_NEW);
+ Lcd_ClearSeg(_LCD_5F_NEW);
+ Lcd_ClearSeg(_LCD_5G_NEW);
+ break;
+ case 6:
+ Lcd_ClearSeg(_LCD_6A_NEW);
+ Lcd_ClearSeg(_LCD_6B_NEW);
+ Lcd_ClearSeg(_LCD_6C_NEW);
+ Lcd_ClearSeg(_LCD_6D_NEW);
+ Lcd_ClearSeg(_LCD_6E_NEW);
+ Lcd_ClearSeg(_LCD_6F_NEW);
+ Lcd_ClearSeg(_LCD_6G_NEW);
+ break;
+ case 7:
+ Lcd_ClearSeg(_LCD_7A_NEW);
+ Lcd_ClearSeg(_LCD_7B_NEW);
+ Lcd_ClearSeg(_LCD_7C_NEW);
+ Lcd_ClearSeg(_LCD_7D_NEW);
+ Lcd_ClearSeg(_LCD_7E_NEW);
+ Lcd_ClearSeg(_LCD_7F_NEW);
+ Lcd_ClearSeg(_LCD_7G_NEW);
+ break;
+ case 8:
+ Lcd_ClearSeg(_LCD_8A_NEW);
+ Lcd_ClearSeg(_LCD_8B_NEW);
+ Lcd_ClearSeg(_LCD_8C_NEW);
+ Lcd_ClearSeg(_LCD_8D_NEW);
+ Lcd_ClearSeg(_LCD_8E_NEW);
+ Lcd_ClearSeg(_LCD_8F_NEW);
+ Lcd_ClearSeg(_LCD_8G_NEW);
+ break;
+ case 9:
+ Lcd_ClearSeg(_LCD_9A_NEW);
+ Lcd_ClearSeg(_LCD_9B_NEW);
+ Lcd_ClearSeg(_LCD_9C_NEW);
+ Lcd_ClearSeg(_LCD_9D_NEW);
+ Lcd_ClearSeg(_LCD_9E_NEW);
+ Lcd_ClearSeg(_LCD_9F_NEW);
+ Lcd_ClearSeg(_LCD_9G_NEW);
+ break;
+ case 10:
+ Lcd_ClearSeg(_LCD_10A_NEW);
+ Lcd_ClearSeg(_LCD_10B_NEW);
+ Lcd_ClearSeg(_LCD_10C_NEW);
+ Lcd_ClearSeg(_LCD_10D_NEW);
+ Lcd_ClearSeg(_LCD_10E_NEW);
+ Lcd_ClearSeg(_LCD_10F_NEW);
+ Lcd_ClearSeg(_LCD_10G_NEW);
+ break;
+ case 11:
+ Lcd_ClearSeg(_LCD_11A_NEW);
+ Lcd_ClearSeg(_LCD_11B_NEW);
+ Lcd_ClearSeg(_LCD_11C_NEW);
+ Lcd_ClearSeg(_LCD_11D_NEW);
+ Lcd_ClearSeg(_LCD_11E_NEW);
+ Lcd_ClearSeg(_LCD_11F_NEW);
+ Lcd_ClearSeg(_LCD_11G_NEW);
+ break;
+ case 12:
+ Lcd_ClearSeg(_LCD_12A_NEW);
+ Lcd_ClearSeg(_LCD_12B_NEW);
+ Lcd_ClearSeg(_LCD_12C_NEW);
+ Lcd_ClearSeg(_LCD_12D_NEW);
+ Lcd_ClearSeg(_LCD_12E_NEW);
+ Lcd_ClearSeg(_LCD_12F_NEW);
+ Lcd_ClearSeg(_LCD_12G_NEW);
+ break;
+ case 13:
+ Lcd_ClearSeg(_LCD_13A_NEW);
+ Lcd_ClearSeg(_LCD_13B_NEW);
+ Lcd_ClearSeg(_LCD_13C_NEW);
+ Lcd_ClearSeg(_LCD_13D_NEW);
+ Lcd_ClearSeg(_LCD_13E_NEW);
+ Lcd_ClearSeg(_LCD_13F_NEW);
+ Lcd_ClearSeg(_LCD_13G_NEW);
+ break;
+ case 14:
+ Lcd_ClearSeg(_LCD_14A_NEW);
+ Lcd_ClearSeg(_LCD_14B_NEW);
+ Lcd_ClearSeg(_LCD_14C_NEW);
+ Lcd_ClearSeg(_LCD_14D_NEW);
+ Lcd_ClearSeg(_LCD_14E_NEW);
+ Lcd_ClearSeg(_LCD_14F_NEW);
+ Lcd_ClearSeg(_LCD_14G_NEW);
+ break;
+ case 15:
+ Lcd_ClearSeg(_LCD_15A_NEW);
+ Lcd_ClearSeg(_LCD_15B_NEW);
+ Lcd_ClearSeg(_LCD_15C_NEW);
+ Lcd_ClearSeg(_LCD_15D_NEW);
+ Lcd_ClearSeg(_LCD_15E_NEW);
+ Lcd_ClearSeg(_LCD_15F_NEW);
+ Lcd_ClearSeg(_LCD_15G_NEW);
+ break;
+ case 16:
+ Lcd_ClearSeg(_LCD_16A_NEW);
+ Lcd_ClearSeg(_LCD_16B_NEW);
+ Lcd_ClearSeg(_LCD_16C_NEW);
+ Lcd_ClearSeg(_LCD_16D_NEW);
+ Lcd_ClearSeg(_LCD_16E_NEW);
+ Lcd_ClearSeg(_LCD_16F_NEW);
+ Lcd_ClearSeg(_LCD_16G_NEW);
+ break;
+ case 17:
+ Lcd_ClearSeg(_LCD_17A_NEW);
+ Lcd_ClearSeg(_LCD_17B_NEW);
+ Lcd_ClearSeg(_LCD_17C_NEW);
+ Lcd_ClearSeg(_LCD_17D_NEW);
+ Lcd_ClearSeg(_LCD_17E_NEW);
+ Lcd_ClearSeg(_LCD_17F_NEW);
+ Lcd_ClearSeg(_LCD_17G_NEW);
+ break;
+ case 18:
+ Lcd_ClearSeg(_LCD_18A_NEW);
+ Lcd_ClearSeg(_LCD_18B_NEW);
+ Lcd_ClearSeg(_LCD_18C_NEW);
+ Lcd_ClearSeg(_LCD_18D_NEW);
+ Lcd_ClearSeg(_LCD_18E_NEW);
+ Lcd_ClearSeg(_LCD_18F_NEW);
+ Lcd_ClearSeg(_LCD_18G_NEW);
+ break;
+ case 19:
+ Lcd_ClearSeg(_LCD_19A_NEW);
+ Lcd_ClearSeg(_LCD_19B_NEW);
+ Lcd_ClearSeg(_LCD_19C_NEW);
+ Lcd_ClearSeg(_LCD_19D_NEW);
+ Lcd_ClearSeg(_LCD_19E_NEW);
+ Lcd_ClearSeg(_LCD_19F_NEW);
+ Lcd_ClearSeg(_LCD_19G_NEW);
+ break;
+ case 20:
+ Lcd_ClearSeg(_LCD_20A_NEW);
+ Lcd_ClearSeg(_LCD_20B_NEW);
+ Lcd_ClearSeg(_LCD_20C_NEW);
+ Lcd_ClearSeg(_LCD_20D_NEW);
+ Lcd_ClearSeg(_LCD_20E_NEW);
+ Lcd_ClearSeg(_LCD_20F_NEW);
+ Lcd_ClearSeg(_LCD_20G_NEW);
+ break;
+ case 21:
+ Lcd_ClearSeg(_LCD_21A_NEW);
+ Lcd_ClearSeg(_LCD_21B_NEW);
+ Lcd_ClearSeg(_LCD_21C_NEW);
+ Lcd_ClearSeg(_LCD_21D_NEW);
+ Lcd_ClearSeg(_LCD_21E_NEW);
+ Lcd_ClearSeg(_LCD_21F_NEW);
+ Lcd_ClearSeg(_LCD_21G_NEW);
+ break;
+ case 22:
+ Lcd_ClearSeg(_LCD_22A_NEW);
+ Lcd_ClearSeg(_LCD_22B_NEW);
+ Lcd_ClearSeg(_LCD_22C_NEW);
+ Lcd_ClearSeg(_LCD_22D_NEW);
+ Lcd_ClearSeg(_LCD_22E_NEW);
+ Lcd_ClearSeg(_LCD_22F_NEW);
+ Lcd_ClearSeg(_LCD_22G_NEW);
+ break;
+ case 23:
+ Lcd_ClearSeg(_LCD_23A_NEW);
+ Lcd_ClearSeg(_LCD_23B_NEW);
+ Lcd_ClearSeg(_LCD_23C_NEW);
+ Lcd_ClearSeg(_LCD_23D_NEW);
+ Lcd_ClearSeg(_LCD_23E_NEW);
+ Lcd_ClearSeg(_LCD_23F_NEW);
+ Lcd_ClearSeg(_LCD_23G_NEW);
+ break;
+ case 24:
+ Lcd_ClearSeg(_LCD_24A_NEW);
+ Lcd_ClearSeg(_LCD_24B_NEW);
+ Lcd_ClearSeg(_LCD_24C_NEW);
+ Lcd_ClearSeg(_LCD_24D_NEW);
+ Lcd_ClearSeg(_LCD_24E_NEW);
+ Lcd_ClearSeg(_LCD_24F_NEW);
+ Lcd_ClearSeg(_LCD_24G_NEW);
+ break;
+ case 25:
+ Lcd_ClearSeg(_LCD_25A_NEW);
+ Lcd_ClearSeg(_LCD_25B_NEW);
+ Lcd_ClearSeg(_LCD_25C_NEW);
+ Lcd_ClearSeg(_LCD_25D_NEW);
+ Lcd_ClearSeg(_LCD_25E_NEW);
+ Lcd_ClearSeg(_LCD_25F_NEW);
+ Lcd_ClearSeg(_LCD_25G_NEW);
+ break;
+ case 26:
+ Lcd_ClearSeg(_LCD_26A_NEW);
+ Lcd_ClearSeg(_LCD_26B_NEW);
+ Lcd_ClearSeg(_LCD_26C_NEW);
+ Lcd_ClearSeg(_LCD_26D_NEW);
+ Lcd_ClearSeg(_LCD_26E_NEW);
+ Lcd_ClearSeg(_LCD_26F_NEW);
+ Lcd_ClearSeg(_LCD_26G_NEW);
+ break;
+ case 27:
+ Lcd_ClearSeg(_LCD_27A_NEW);
+ Lcd_ClearSeg(_LCD_27B_NEW);
+ Lcd_ClearSeg(_LCD_27C_NEW);
+ Lcd_ClearSeg(_LCD_27D_NEW);
+ Lcd_ClearSeg(_LCD_27E_NEW);
+ Lcd_ClearSeg(_LCD_27F_NEW);
+ Lcd_ClearSeg(_LCD_27G_NEW);
+ break;
+ case 28:
+ Lcd_ClearSeg(_LCD_28A_NEW);
+ Lcd_ClearSeg(_LCD_28B_NEW);
+ Lcd_ClearSeg(_LCD_28C_NEW);
+ Lcd_ClearSeg(_LCD_28D_NEW);
+ Lcd_ClearSeg(_LCD_28E_NEW);
+ Lcd_ClearSeg(_LCD_28F_NEW);
+ Lcd_ClearSeg(_LCD_28G_NEW);
+ break;
+ case 29:
+ Lcd_ClearSeg(_LCD_29A_NEW);
+ Lcd_ClearSeg(_LCD_29B_NEW);
+ Lcd_ClearSeg(_LCD_29C_NEW);
+ Lcd_ClearSeg(_LCD_29D_NEW);
+ Lcd_ClearSeg(_LCD_29E_NEW);
+ Lcd_ClearSeg(_LCD_29F_NEW);
+ Lcd_ClearSeg(_LCD_29G_NEW);
+ break;
+ case 30:
+ Lcd_ClearSeg(_LCD_30A_NEW);
+ Lcd_ClearSeg(_LCD_30B_NEW);
+ Lcd_ClearSeg(_LCD_30C_NEW);
+ Lcd_ClearSeg(_LCD_30D_NEW);
+ Lcd_ClearSeg(_LCD_30E_NEW);
+ Lcd_ClearSeg(_LCD_30F_NEW);
+ Lcd_ClearSeg(_LCD_30G_NEW);
+ break;
+ case 31:
+ Lcd_ClearSeg(_LCD_31A_NEW);
+ Lcd_ClearSeg(_LCD_31B_NEW);
+ Lcd_ClearSeg(_LCD_31C_NEW);
+ Lcd_ClearSeg(_LCD_31D_NEW);
+ Lcd_ClearSeg(_LCD_31E_NEW);
+ Lcd_ClearSeg(_LCD_31F_NEW);
+ Lcd_ClearSeg(_LCD_31G_NEW);
+ break;
+// case 32:
+// Lcd_ClearSeg(_LCD_32A_NEW);
+// Lcd_ClearSeg(_LCD_32B_NEW);
+// Lcd_ClearSeg(_LCD_32C_NEW);
+// Lcd_ClearSeg(_LCD_32D_NEW);
+// Lcd_ClearSeg(_LCD_32E_NEW);
+// Lcd_ClearSeg(_LCD_32F_NEW);
+// Lcd_ClearSeg(_LCD_32G_NEW);
+// break;
+// case 33:
+// Lcd_ClearSeg(_LCD_33A_NEW);
+// Lcd_ClearSeg(_LCD_33B_NEW);
+// Lcd_ClearSeg(_LCD_33C_NEW);
+// Lcd_ClearSeg(_LCD_33D_NEW);
+// Lcd_ClearSeg(_LCD_33E_NEW);
+// Lcd_ClearSeg(_LCD_33F_NEW);
+// Lcd_ClearSeg(_LCD_33G_NEW);
+// break;
+ default:
+ break;
+ }
+}
+
+void LCD_DisplayfisrtLine_NEW(u8 show_type,double number)
+{
+ long long number_div;
+ u8 array[9];
+ u8 yu_temp;
+ u8 num_array;
+ u8 i;
+
+ num_array = 0;
+ number_div = (long long) number;
+
+
+ if(number_div >= 10000000)
+ number_div = 9999999;
+
+
+ /*�������ּ���*/
+ yu_temp = number_div % 10;
+ number_div = number_div / 10;
+
+ while(number_div > 0)
+ {
+ array[6 - num_array] = yu_temp;
+ num_array ++;
+
+ yu_temp = number_div % 10;
+ number_div = number_div / 10;
+
+
+ }
+ array[6 - num_array] = yu_temp;
+ num_array ++;
+
+ /*С�����ּ���*/
+ number_div = (number * 10);
+ array[7] =(u8) (number_div % 10);
+
+ number_div = (number * 100);
+ array[8] =(u8) (number_div % 10);
+
+ /**/
+ for(i = 0; i < (7 - num_array); i ++)
+ {
+ LCD_ClearDigit_NEW((i+1));
+ }
+
+ for(i = (7- num_array); i < 9; i ++)
+ {
+ LCD_DisplayDigit_NEW((i+1),array[i]);
+ }
+
+ Lcd_DisplaySeg(_LCD_POINT1_NEW);
+
+ if(show_type == 0)
+ {
+ Lcd_DisplaySeg(_LCD_ZONGLIANG_NEW);//���Բ���
+ Lcd_DisplaySeg(_LCD_N_UP_NEW);
+ Lcd_DisplaySeg(_LCD_M_UP_NEW);
+ //Lcd_DisplaySeg(_LCD_P_NEW);
+ }
+ else
+ {
+ Lcd_DisplaySeg(_LCD_ZONGLIANG_NEW);
+ Lcd_DisplaySeg(_LCD_M_UP_NEW);
+ //Lcd_DisplaySeg(_LCD_P_NEW);
+ }
+}
+
+void LCD_DisplayfisrtLine_check_NEW(u8 show_type,double number)
+{
+ long long number_div;
+ u8 array[8];
+ u8 yu_temp;
+ u8 num_array;
+ u8 i;
+
+ num_array = 0;
+ number_div = (long long) number;
+
+
+ if(number_div >= 100000)
+ number_div = 99999;
+
+
+ /*�������ּ���*/
+ yu_temp = number_div % 10;
+ number_div = number_div / 10;
+
+ while(number_div > 0)
+ {
+ array[4 - num_array] = yu_temp;
+ num_array ++;
+
+ yu_temp = number_div % 10;
+ number_div = number_div / 10;
+
+
+ }
+ array[4 - num_array] = yu_temp;
+ num_array ++;
+
+ /*С�����ּ���*/
+ number_div = (number * 10);
+ array[5] =(u8) (number_div % 10);
+
+ number_div = (number * 100);
+ array[6] =(u8) (number_div % 10);
+
+ number_div = (number * 1000);
+ array[7] =(u8) (number_div % 10);
+
+ /**/
+ for(i = 0; i < (5 - num_array); i ++)
+ {
+ LCD_ClearDigit_NEW((i+1));
+ }
+
+ for(i = (5- num_array); i < 5; i ++)
+ {
+ LCD_DisplayDigit_NEW((i+1),array[i]);
+ }
+
+ //������������ʾ�»��� '_',������
+ Lcd_ClearSeg(_LCD_6A_NEW);
+ Lcd_ClearSeg(_LCD_6B_NEW);
+ Lcd_ClearSeg(_LCD_6C_NEW);
+ Lcd_DisplaySeg(_LCD_6D_NEW);
+ Lcd_ClearSeg(_LCD_6E_NEW);
+ Lcd_ClearSeg(_LCD_6F_NEW);
+ Lcd_ClearSeg(_LCD_6G_NEW);
+
+
+ LCD_DisplayDigit_NEW(7,array[5]);
+ LCD_DisplayDigit_NEW(8,array[6]);
+ LCD_DisplayDigit_NEW(9,array[7]);
+
+
+ Lcd_ClearSeg(_LCD_POINT1_NEW);
+
+ if(show_type == 0)
+ {
+ Lcd_DisplaySeg(_LCD_ZONGLIANG_NEW);
+ Lcd_DisplaySeg(_LCD_N_UP_NEW);
+ Lcd_DisplaySeg(_LCD_M_UP_NEW);
+ //Lcd_DisplaySeg(_LCD_P_NEW);
+ }
+ else
+ {
+ Lcd_DisplaySeg(_LCD_ZONGLIANG_NEW);
+ Lcd_DisplaySeg(_LCD_M_UP_NEW);
+ //Lcd_DisplaySeg(_LCD_P_NEW);
+ }
+}
+
+
+
+
+//*show_type : ��ʾ���� 1����λNM3��0����λԪ
+void LCD_DisplaysecondLine_NEW(u8 show_type,double number)
+{
+ long long number_div;
+ u8 array[8];
+ u8 yu_temp;
+ u8 num_array;
+ u8 i;
+
+ if(number<0)
+ {
+ number = -number;
+ Lcd_DisplaySeg(_LCD_YULIANG_FUSHU);
+ }else
+ {
+
+ Lcd_ClearSeg(_LCD_YULIANG_FUSHU);
+ }
+
+ num_array = 0;
+ number_div = (long long) number;
+
+
+
+
+ if(number_div > 1000000)
+ {
+ Lcd_ClearSeg(_LCD_POINT2_NEW);
+ if(number_div>99999999)
+ {
+ number_div = 99999999;
+ }
+
+ yu_temp = number_div % 10;
+ number_div = number_div / 10;
+
+ while(number_div > 0)
+ {
+ array[7 - num_array] = yu_temp;
+ num_array ++;
+
+ yu_temp = number_div % 10;
+ number_div = number_div / 10;
+
+ }
+ array[7 - num_array] = yu_temp;
+ num_array ++;
+
+
+ for(i = 0; i < (8 - num_array); i ++)
+ {
+ LCD_ClearDigit_NEW((i+10));
+ }
+
+ for(i = (8- num_array); i < 9; i ++)
+ {
+ LCD_DisplayDigit_NEW((i+10),array[i]);
+ }
+
+
+
+ }else
+ {
+
+ /*�������ּ���*/
+ yu_temp = number_div % 10;
+ number_div = number_div / 10;
+
+ while(number_div > 0)
+ {
+ array[5 - num_array] = yu_temp;
+ num_array ++;
+
+ yu_temp = number_div % 10;
+ number_div = number_div / 10;
+ }
+ array[5 - num_array] = yu_temp;
+ num_array ++;
+
+ /*С�����ּ���*/
+ number_div = (number * 10);
+ array[6] =(u8) (number_div % 10);
+
+ number_div = (number * 100);
+ array[7] =(u8) (number_div % 10);
+
+ /**/
+ for(i = 0; i < (6 - num_array); i ++)
+ {
+ LCD_ClearDigit_NEW((i+10));
+ }
+
+ for(i = (6- num_array); i < 8; i ++)
+ {
+ LCD_DisplayDigit_NEW((i+10),array[i]);
+ }
+
+ Lcd_DisplaySeg(_LCD_POINT2_NEW);
+ }
+
+ if(show_type == 0)
+ {
+ Lcd_DisplaySeg(_LCD_YULIANG_NEW);
+ Lcd_DisplaySeg(_LCD_YUAN_DOWN_NEW);
+ }
+ else
+ {
+ Lcd_DisplaySeg(_LCD_YULIANG_NEW);
+ Lcd_DisplaySeg(_LCD_N_DOWN_NEW);
+ }
+}
+
+//*show_type : ��ʾ���� 1��������0�����
+void LCD_DisplayFlow_NEW(u8 show_type,float number)
+{
+ long number_div;
+ u8 array[4];
+ u8 yu_temp;
+ u8 num_array;
+ u8 i;
+
+
+ num_array = 0;
+ number_div = (long ) number;
+
+
+ if(number_div >= 100)
+ number_div = 99;
+
+
+ /*�������ּ���*/
+ yu_temp = number_div % 10;
+ number_div = number_div / 10;
+
+ while(number_div > 0)
+ {
+ array[1 - num_array] = yu_temp;
+ num_array ++;
+
+ yu_temp = number_div % 10;
+ number_div = number_div / 10;
+
+
+ }
+ array[1 - num_array] = yu_temp;
+ num_array ++;
+
+ /*С�����ּ���*/
+ number_div = (number * 10);
+ array[2] =(u8) (number_div % 10);
+
+ number_div = (number * 100);
+ array[3] =(u8) (number_div % 10);
+
+ /**/
+ for(i = 0; i < (2 - num_array); i ++)
+ {
+ LCD_ClearDigit_NEW((i+18));
+ }
+
+ for(i = (2- num_array); i < 4; i ++)
+ {
+ LCD_DisplayDigit_NEW((i+18),array[i]);
+ }
+
+ Lcd_DisplaySeg(_LCD_POINT3_NEW);
+
+ if(show_type == 0)
+ {
+
+ Lcd_DisplaySeg(_LCD_LIULIANG_NEW);
+ Lcd_DisplaySeg(_LCD_LIULIANG_N_NEW);
+ Lcd_DisplaySeg(_LCD_LIULIANG_M3H_NEW);
+
+ }
+ else
+ {
+ Lcd_DisplaySeg(_LCD_LIULIANG_NEW);
+ Lcd_DisplaySeg(_LCD_LIULIANG_M3H_NEW);
+ }
+
+}
+void LCD_DisplayUnitPrice_NEW(float number)
+{
+ u32 number_div,number_10000;
+ u8 array[3];
+ u8 yu_temp;
+ u8 num_array;
+ u8 i;
+
+ number_10000 = number*10000; //��*10000�ж�β���Dz���99���DZ��⸡�������ȶ�������Ӱ�졣����4.7. ʵ�ʸ�����������4.699999.
+ if((number_10000%100)==99)
+ {
+ number_10000 = number_10000 +1;
+ }
+
+
+ num_array = 0;
+ number_div = number_10000 /10000;
+
+
+ if(number_div > 10)
+ number_div = 9;
+
+
+ /*�������ּ���*/
+ yu_temp = number_div % 10;
+ number_div = number_div / 10;
+
+// while(number_div > 0)
+// {
+// array[1 - num_array] = yu_temp;
+// num_array ++;
+//
+// yu_temp = number_div % 10;
+// number_div = number_div / 10;
+//
+//
+// }
+ array[0] = yu_temp;
+ num_array ++;
+
+ /*С�����ּ���*/
+
+
+ number_div = number_10000 / 100;
+
+ yu_temp = number_div % 10;
+ number_div = number_div / 10;
+ array[2] = yu_temp;
+
+ yu_temp = number_div % 10;
+ array[1] = yu_temp;
+
+ /**/
+ for(i = 0; i < (1 - num_array); i ++)
+ {
+ LCD_ClearDigit_NEW((i+22));
+ }
+
+ for(i = (1- num_array); i < 3; i ++)
+ {
+ LCD_DisplayDigit_NEW((i+22),array[i]);
+ }
+
+ Lcd_DisplaySeg(_LCD_POINT4_NEW);
+
+
+ Lcd_DisplaySeg(_LCD_DANJIA_NEW);
+ Lcd_DisplaySeg(_LCD_DANJIA_YUAN_M3_NEW);
+
+}
+//*show_type : ��ʾ���� 1��NM3H��0��M3H
+void LCD_DisplayTem_NEW(float number)
+{
+ long number_div;
+ u8 array[3];
+ u8 yu_temp;
+ u8 num_array;
+ u8 i;
+
+ if(number<0)
+ {
+ number = -number;
+ Lcd_DisplaySeg(_LCD_HENG_NEW);
+ }
+ else
+ {
+ Lcd_DisplaySeg(_LCD_HENG_NEW);
+ Lcd_DisplaySeg(_LCD_SHU_NEW);
+ }
+
+
+ num_array = 0;
+ number_div = (long ) number;
+
+
+ if(number_div > 100)
+ number_div = 99;
+
+
+ /*�������ּ���*/
+ yu_temp = number_div % 10;
+ number_div = number_div / 10;
+
+ while(number_div > 0)
+ {
+ array[1 - num_array] = yu_temp;
+ num_array ++;
+
+ yu_temp = number_div % 10;
+ number_div = number_div / 10;
+
+
+ }
+ array[1 - num_array] = yu_temp;
+ num_array ++;
+
+ /*С�����ּ���*/
+ if(number < 0)
+ {
+ number_div = (long long) (- number * 10);
+ }else
+ {
+ number_div = (long long) (number * 10);
+ }
+ array[2] =(u8) (number_div % 10);
+
+
+ /**/
+ for(i = 0; i < (2 - num_array); i ++)
+ {
+ LCD_ClearDigit_NEW((i+25));
+ }
+
+ for(i = (2- num_array); i < 3; i ++)
+ {
+ LCD_DisplayDigit_NEW((i+25),array[i]);
+ }
+
+ Lcd_DisplaySeg(_LCD_POINT5_NEW);
+
+
+ Lcd_DisplaySeg(_LCD_TEMP_NEW);
+ Lcd_DisplaySeg(_LCD_0C_H_NEW);
+
+}
+
+void LCD_DisplayPre_NEW(float number)
+{
+ long number_div;
+ u8 array[4];
+ u8 yu_temp;
+ u8 num_array;
+ u8 i;
+
+ num_array = 0;
+ number_div = ( long) number;
+
+
+ if(number_div > 1000)
+ number_div = 999;
+
+
+ /*�������ּ���*/
+ yu_temp = number_div % 10;
+ number_div = number_div / 10;
+
+ while(number_div > 0)
+ {
+ array[2 - num_array] = yu_temp;
+ num_array ++;
+
+ yu_temp = number_div % 10;
+ number_div = number_div / 10;
+
+
+ }
+ array[2 - num_array] = yu_temp;
+ num_array ++;
+
+ /*С�����ּ���*/
+ number_div = (number * 10);
+ array[3] =(u8) (number_div % 10);
+
+
+
+ /**/
+ for(i = 0; i < (3 - num_array); i ++)
+ {
+ LCD_ClearDigit_NEW((i+28));
+ }
+
+ for(i = (3- num_array); i < 4; i ++)
+ {
+ LCD_DisplayDigit_NEW((i+28),array[i]);
+ }
+
+ Lcd_DisplaySeg(_LCD_POINT6_NEW);
+ Lcd_DisplaySeg(_LCD_PRE_NEW);
+ Lcd_DisplaySeg(_LCD_KPA_H_NEW);
+}
+
+void show_work_status_NEW(u8 number)
+{
+ LCD_ClearDigit_NEW(32);
+ LCD_DisplayDigit_NEW(32,number);
+}
+
+
+
+
+
+
+
+void Lcd_Display_Menu(void)
+{
+ LCD_PWR_ON;
+ HAL_Delay(10);
+ LCD_ALL_CLEAR;
+ Lcd_Init();
+ Lcd_DisplaySeg(_LCD_SIZHULOG_NEW);
+ Lcd_DisplaySeg(_LCD_BATTERY_SHELL_NEW);
+ Lcd_DisplaySeg(_LCD_BATTERY_1_NEW);
+ Lcd_DisplaySeg(_LCD_BATTERY_2_NEW);
+ Lcd_DisplaySeg(_LCD_BATTERY_3_NEW);
+ Lcd_DisplaySeg(_LCD_BATTERY_4_NEW);
+ Lcd_DisplaySeg(_LCD_LIDIAN_NEW);
+ Lcd_DisplaySeg(_LCD_JIANDIAN_NEW);
+
+ LCD_DisplayTem_NEW(sys_flow_data_g.temperature);
+ LCD_DisplayPre_NEW(sys_flow_data_g.pressure);
+ LCD_DisplayfisrtLine_NEW(1,sys_flow_data_g.cumulate_wc);
+ LCD_DisplaysecondLine_NEW(0,sys_delay_sec_para_g.flow_data_period_para.delay_time);
+ LCD_DisplayFlow_NEW(1,sys_flow_data_g.instant_wc);
+ LCD_ALL_DISPLAY;
+}
+
+
+
+
+
+
+
--
Gitblit v1.9.3