标题: LCD1602控制显示程序(STM32单片机) [打印本页]

作者: noble_purple    时间: 2024-7-19 12:27
标题: LCD1602控制显示程序(STM32单片机)
//主程序展示,相关函数定义见附件
#include "stm32f10x.h"
#include "interface.h"
#include "LCD1602.h"
//全局变量定义
char ctrl_comm = COMM_STOP;//控制指令

int main()
{               
  GPIOCLKInit(); //调用IO口使能时钟函数
        UserLEDInit(); //调用LED灯函数
        FMInit();
        LCD1602Init();
        while(1)
        {
   LCD1602WriteCommand(ctrl_comm);
        }
}

原理图: 无
仿真: 无
代码: 6 LCD1602实验.7z (179.82 KB, 下载次数: 19)





欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1