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_io_api.h |   30 ++++++++++++++----------------
 1 files changed, 14 insertions(+), 16 deletions(-)

diff --git a/Function/LCD/lcd_io_api.h b/Function/LCD/lcd_io_api.h
index 7bef53c..a67ddb4 100644
--- a/Function/LCD/lcd_io_api.h
+++ b/Function/LCD/lcd_io_api.h
@@ -19,28 +19,26 @@
 #include "lcd_segmentcode.h"
 
 
-#define	SEGNUM		48
+#define	Segnum		48
 
-#define	LCD_ADDR_WRITE    	0x7C    //���ĵ�20/35
-#define	LCD_ADDR_READ     	0x7D
+#define	LCD_WRITE    	0x7C    //���ĵ�20/35
+#define	LCD_READ     	0x7D
 
-#define	LCD_REG_DATA_ADDR		0x80   //��ʾ�����������������
+#define	LCD_REG_DATA		0x80   //��ʾ�����������������
 
-#define	LCD_DRIVE_MODE_COMMAND_ADDR 0x82 //22/35 ����ģʽ���� 0x82  
+//#define	LCD_DRIVE_MODE_COMMAND_ADDR 0x82 //22/35 ����ģʽ���� 0x82  
 
-#define	LCD_SYSTEM_MODE_COMMAND_ADDR 0x84
+//#define	LCD_SYSTEM_MODE_COMMAND_ADDR 0x84
 
-#define LCD_PWR_GPIO_PORT							GPIOD
-#define LCD_PWR_PIN										GPIO_Pin_7
+#define LCD_PWR_GPIO_PORT							GPIOB
+#define LCD_PWR_PIN										GPIO_Pin_6
 
-#define LCD_BACKLIGHT_PWR_GPIO_PORT		GPIOD
-#define LCD_BACKLIGHT_PWR_PIN					GPIO_Pin_8
+#define LCD_BACKLIGHT_PWR_GPIO_PORT		GPIOB
+#define LCD_BACKLIGHT_PWR_PIN					GPIO_Pin_5
 
 //��ʾ����Դ
 #define LCD_PWR_ON			GPIO_SetBits(LCD_PWR_GPIO_PORT,LCD_PWR_PIN)
 #define LCD_PWR_OFF			GPIO_ResetBits(LCD_PWR_GPIO_PORT,LCD_PWR_PIN)	
-
-#define LCD_PWR_IO_READ			GPIO_ReadInputDataBit(LCD_PWR_GPIO_PORT,LCD_PWR_PIN)
 
 //���⿪��
 #define LCD_BACKLIGHT_ON 		GPIO_SetBits(LCD_BACKLIGHT_PWR_GPIO_PORT,LCD_BACKLIGHT_PWR_PIN)
@@ -53,7 +51,7 @@
  * ������Lcd_DisplaySeg(_LCD_TI_logo)����ʾTI logo
   ********************************************************************** */
 //���ָ�����ݵ�����
-#define LCD_DISPLAY_SEG(__SEG_NUM__) LCD_Buffer[__SEG_NUM__ >> 3]  |= 1 << (__SEG_NUM__ % 8)
+#define LCD_DISPLAY_SEG(__SEG_NUM__) LCD_buffer[__SEG_NUM__ >> 3]  |= 1 << (__SEG_NUM__ % 8)
 
 /***********************************************************************
  * ���ƣ�Lcd_ClearSeg()
@@ -62,7 +60,7 @@
  * ������Lcd_ClearSeg(_LCD_TI_logo)����ʾTI logo  �����ԭ����ǻ���İ�λ���ųɶ����ƣ�����Ӧλ��һ
   ********************************************************************** */
 //���ָ�����ݵ�����
-#define LCD_CLEAR_SEG(__SEG_NUM__) LCD_Buffer[__SEG_NUM__ >> 3]  &= ~(1 << (uint8_t)(__SEG_NUM__ % 8))
+#define LCD_CLEAR_SEG(__SEG_NUM__) LCD_buffer[__SEG_NUM__ >> 3]  &= ~(1 << (uint8_t)(__SEG_NUM__ % 8))
 
 
 typedef enum{
@@ -94,7 +92,7 @@
 	LCD_Z
 }LCD_LETTERS_T;
 
-extern uint8_t	LCD_Buffer[SEGNUM];
+extern uint8_t	LCD_buffer[Segnum];
 
 
 void Lcd_Write_Reg(uint8_t sadd,uint8_t * pBuffer,uint8_t len);
@@ -107,7 +105,7 @@
 void Lcd_ClearDigit_23A(unsigned char Position);
 
 void Lcd_DisplayLetter(uint8_t position,LCD_LETTERS_T letter);
-void Lcd_GPIO_Init(void);
+void Lcd_IO_Init(void);
 
 
 #endif

--
Gitblit v1.9.3