baka2022 / wannianli Goto Github PK
View Code? Open in Web Editor NEW基于stm32的万年历
基于stm32的万年历
其实这是一个简易的万年历 当然我的代码很不优雅 实验器材: 战舰STM32F103开发板V3版本 实验目的: 学习拼音输入法在STM32上的实现,实现一个简单的T9拼音输入法. 硬件资源: 1,DS0(连接在PB5) 2,串口1(波特率:115200,PA9/PA10连接在板载USB转串口芯片CH340上面) 3,ALIENTEK 2.8/3.5/4.3/7寸TFTLCD模块(通过FSMC驱动,FSMC_NE4接LCD片选/A10接RS) 4,按键KEY0(PE4)/KEY1(PE3)/KEY2(PE2)/KEY_UP(PA0,也称之为WK_UP) 5,W25Q128(SPI FLASH芯片,连接在SPI2上) 实验现象: 本实验开机的时候先检测字库,然后显示提示信息和绘制拼音输入表,之后进入等待输入状态。此时用户可以 通过屏幕上的拼音输入表输入拼音数字串(通过DEL可以实现退格),然后程序自动检测与之对应的拼音和汉字 ,并显示在屏幕上(同时输出到串口)。如果有多个匹配的拼音,则通过KEY_UP和KEY1进行选择。按键KEY0用 于清除一次输入,按键KEY2用于触摸屏校准。 注意事项: 1,4.3寸和7寸屏需要比较大电流,USB供电可能不足,请用外部电源适配器(推荐外接12V 1A电源). 2,本例程在LCD_Init函数里面(在ILI93xx.c),用到了printf,如果不初始化串口1,将导致液晶无法显示!! 3,电容触摸屏无需校准,因此当使用电容屏的时候,按KEY2按键无响应!! ------------------------------------------------------------------------------------------- ◆其他重要连接: 开发板光盘资料下载地址(视频+文档+源码等):http://www.openedv.com/posts/list/13912.htm 添加微信公众平台方法:http://www.openedv.com/posts/list/45157.htm ◆友情提示:如果您想以后及时免费的收到正点原子所有开发板资料更新增加通知,请关注微信公众平台: 2种添加方法:(动动手提升您的学习效率,惊喜不断哦) (1)打开微信->添加朋友->公众号->输入“正点原子”->点击关注 (2)打开微信->添加朋友->输入“alientek_stm32"->点击关注 具体微信添加方法,请参考帖子:http://www.openedv.com/posts/list/45157.htm 正点原子@ALIENTEK 广州市星翼电子科技有限公司 电话:020-38271790 传真:020-36773971 购买:http://eboard.taobao.com 公司网站:www.alientek.com 技术论坛:www.openedv.com
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.