|
STM32F103驅(qū)動LCD1206A程序,為了調(diào)試網(wǎng)上下載了一堆程序卻都不能用,這個小程序竟然都是忽悠分了,也是醉了。
自己調(diào)試了一個確定可用的,需要的自己下載。
硬件連接
- #include "sys.h"
- #include <stdio.h>
- #include "1602.h"
- #include "usart.h"
- #include "delay.h"
- unsigned int i,j;
- unsigned char temp_table[] ={"abcdefghijklmnop"};
- unsigned char temp_set_table[]={"ABCDEFGHIJKLMNOP"};
- void zq(void);
- int main(void)
- {
- delay_init();
- delay_ms(100);
- GPIO_InitStructReadtempCmd(); //GPIO端口配置初始化
- delay_ms(100);
- lcd_system_reset();
- delay_ms(200);
- for(i=0;i<16;i++)
- lcd_char_write(i,0,temp_table[i]);
- lcd_delay(100);
- for(j=0;j<16;j++)
- lcd_char_write(j,1,temp_set_table[j]);
- lcd_delay(100);
- while(1)
- {
- }
- }
復(fù)制代碼
|
評分
-
查看全部評分
|