欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136
標(biāo)題:
STM32F103ZET6 LCD12864液晶多級菜單源碼
[打印本頁]
作者:
Tang_xiao
時間:
2018-8-4 23:18
標(biāo)題:
STM32F103ZET6 LCD12864液晶多級菜單源碼
1.LCD液晶多級菜單源碼
2.STM32+12864實現(xiàn)多級文字菜單的切換
單片機源程序如下:
/**
******************************************************************************
* @file main.c
* @author SUNZHENGYUAN
* @version V1.0
* @date 2013-xx-xx
* @brief 工程項目
******************************************************************************
* @attention
*
* 項目平臺:STM32F103ZET6
*
*
*
******************************************************************************
*/
/*=====================================================================================
函數(shù)名稱:
功能描述:
全局變量:
參數(shù)說明:
返回說明:
設(shè) 計 人:
版 本:
說 明:
======================================================================================*/
#include "stm32f10x.h"
#include "Param.h"
#include "GPIO.h"
#include "Lcd.h"
#include "function.h"
uchar func_index=0;
uchar one=0;
void (*current_operation_index)();
typedef struct
{
uchar current;
uchar up;
uchar down;
uchar right;
uchar enter;
void (*current_operation)();
} key_table;
key_table tables[Menu_Num]=
{
{0,3,1,1,4,(*fun_main_1)},
{1,0,2,0,1,(*fun_main_2)},
{2,1,3,3,11,(*fun_main_3)},
{3,2,0,2,10,(*fun_main_4)},
{4,9,5,4,4,(*fun_measure_1)},
{5,4,6,5,5,(*fun_measure_2)},
{6,5,7,6,6,(*fun_measure_3)},
{7,6,8,7,7,(*fun_measure_4)},
{8,7,9,8,0,(*fun_measure_5)},
{9,8,4,9,9,(*fun_measure_6)},
{10,0,0,0,0,(*fun_document_1)},
{11,13,12,16,16,(*fun_enable_1)},
{12,11,13,0,0,(*fun_enable_2)},
{13,12,11,14,14,(*fun_enable_3)},
{14,15,15,13,13,(*fun_enable_4)},
{15,14,14,13,13,(*fun_enable_5)},
{16,17,17,11,11,(*fun_enable_6)},
{17,16,16,11,11,(*fun_enable_7)},
};
/**
* @brief 主函數(shù)
* @param 無
* @retval 無
*/
int main(void)
{
GPIO_Config();
Lcd_12864_Init();
Lcd_12864_Clear_AllScreen();
while(1)
{
/*******************find index****************************/
if((keyup==0)||(keydown==0)||(keyenter==0)||(keyright==0))
{
Delay_(10);
if(keyup==0)
{
func_index=tables[func_index].up;
one=0;
while(!keyup);
}
if(keydown==0)
{
func_index=tables[func_index].down;
one=0;
while(!keydown);
}
if(keyenter==0)
{
func_index=tables[func_index].enter;
one=0;
while(!keyenter);
}
if(keyright==0)
{
func_index=tables[func_index].right;
one=0;
while(!keyright);
}
}
if(one==0)
{
// Lcd_12864_Clear_AllScreen();
// Lcd_12864_Init();
current_operation_index=tables[func_index].current_operation;
(*current_operation_index)();
one=1;
}
}
}
/*********************************************END OF FILE**********************/
復(fù)制代碼
全部資料51hei下載地址:
液晶多級菜單.zip
(1.78 MB, 下載次數(shù): 278)
2018-8-4 23:18 上傳
點擊文件名下載附件
下載積分: 黑幣 -5
作者:
氺魔尊丿
時間:
2018-8-15 22:57
我一事不明,就代碼中的LCD_CS和LCD_RS,前者是12864的片選,那后這是模擬IIC的嗎?
作者:
氺魔尊丿
時間:
2018-8-15 22:58
代碼中的LCD_RS和LCD_CS分別是指?
作者:
JIANGJING520
時間:
2018-11-5 14:15
學(xué)習(xí)了學(xué)習(xí)了
作者:
530157193
時間:
2018-11-28 11:00
樓主可以給個插線方法嗎
作者:
汶爾雅
時間:
2018-12-10 22:19
感謝樓主,學(xué)習(xí)了
作者:
liyvg
時間:
2018-12-11 10:59
謝樓主分享,學(xué)習(xí)一下。
作者:
952122689
時間:
2018-12-20 13:18
學(xué)習(xí)了,謝謝樓主
作者:
952122689
時間:
2018-12-20 19:51
打不開老鐵
作者:
小林大哥哥
時間:
2019-7-21 15:07
我一事不明,就代碼中的LCD_CS和LCD_RS,前者是12864的片選,那后這是模擬IIC的嗎?
作者:
vlivli
時間:
2019-10-16 14:59
下載學(xué)習(xí)下。
作者:
530157193
時間:
2019-12-3 19:26
我想問下key_table tables[Menu_Num]=里的5個數(shù)字是怎么確定的啊
作者:
ywjianghu
時間:
2020-2-12 00:25
本帖最后由 ywjianghu 于 2020-2-12 21:58 編輯
不知什么原因,不能解壓。今天換了個解壓軟件,可以了。
作者:
2205032091
時間:
2025-4-23 16:17
樓主這個字模取模格式是什么啊
歡迎光臨 (http://m.raoushi.com/bbs/)
Powered by Discuz! X3.1