当前位置:网站首页>手把手带你写嵌入式物联网的第一个项目
手把手带你写嵌入式物联网的第一个项目
2022-08-10 05:23:00 【cpp编程】
- 嵌入式物联网的现状
C/C++的垄断领域
100%高薪就业的专属领域
目前以及未来30年的发展方向
具体行业:
- 通信行业
- 设备制造
- 军工行业
- 智能家居
- 车联网
- 自动驾驶
- 智能物流
- 项目说明
项目演示
已经演示了!
不要Qt,不要图形库,什么都不要,只要C语言
- 原理分析
点阵字体的解析
汉字点阵字库hzk16
Hzk16
使用C语言读取字库文件hzk16, 然后从这个文件读取指定的字库信息
为了提高开发效率,Rock已经把“汉字->字库信息”封装成函数
每个汉字需要 16*16 = 512位来表示
512/8 = 32
所以需要32个字节来表示一个汉字
汉字在字库文件中的存储顺序:使用区位码表示(区号,行号)
94行,每行94列 94*94 = 8836
行号:区号
列号:位号
内码:汉字实际存储的编码
区码 = 内码(高字节)-160
位码 = 内码(低字节)-160
假设“牛”在汉字字库的第50行,第60列,
那么,我们就实际存储这个“牛”:50+160 = 210, 60+160=220
【210】【220】
公告牌的滚动
循环绘制实现。
- 代码实现
创建项目
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
}
先生成完整的输出信息
类似:(假设是“你你你你”)
以后,根据滚动位置,从这个完整的数组中,“截取”一块输出
生成 16 行, 每行 16*2*3 + 1个字符
截取缓存输出
off大于0时
每一行输出off个空格,以及最多16*2*3 - off个字符,或者直到遇到回车符
off小于0时
每一行,从缓存的第-off 个位置开始,最多输出16*2*3个字符,或者直到遇到回车符
滚动实现
控制台的坐标系
初始状态:
移动做最左端:
今天的分享就到这里了,大家要好好学C语言/C++哟~
欢迎转行和学习编程的伙伴,利用更多的资料学习成长比自己琢磨更快哦!
对于准备学习C/C++编程的小伙伴,如果你想更好的提升你的编程核心能力(内功)不妨从现在开始!
整理分享(多年学习的源码、项目实战视频、项目笔记,基础入门教程)加君羊获取哦~
C语言C++编程学习交流圈子,企鹅君羊:763855696
边栏推荐
- EasyGBS连接mysql数据库提示“can’t connect to mysql server”,该如何解决?
- SQL database field to append to main table
- Depth of carding: prevent model fitting method
- summer preschool assignments
- AVL tree insertion--rotation notes
- Important transformation and upgrading
- 【静态代理】
- How to improve product quality from the code layer
- 【Static proxy】
- Hezhou ESP32C3 +1.8"tft network clock under Arduino framework
猜你喜欢
How cursors work in Pulsar
线性代数(四)
Rpc接口压测
ORA-16018 异常处理记录
tensorflow分词深度学习——影评预测
Unity implements UI edge detection and drag-and-drop functions
Conda creates a virtual environment method and pqi uses a domestic mirror source to install a third-party library method tutorial
基于BP神经网络的多因素房屋价格预测matlab仿真
Arduino框架下合宙ESP32C3 +1.8“tft 网络时钟
细数国产接口协作平台的六把武器!
随机推荐
oracle cdc时,设置并行度2插槽数1,最终任务只有一个tm,是不是因为oracle不支持并发
How does flinksql write that the value of redis has only the last field?
十年架构五年生活-07 年轻气盛的蜕变
2022 security officer C certificate test and simulation test in shandong province
Matlab simulation of multi-factor house price prediction based on BP neural network
I have a dream for Career .
什么是“大小端字节序”存储模式?
接口调试还能这么玩?
Why are negative numbers in binary represented in two's complement form - binary addition and subtraction
ThreadPoolExecutor线程池原理
Big guys, mysql cdc (2.2.1 and previous versions) sometimes has this situation since savepoint, is there anything wrong?
How to get the last day of a month
应用在智能触摸遥控器中的触摸芯片
flinkcdc 读取pgsql 的时间被放大了 有大佬知道咋回事吗 gmt_create':1
深度学习——循环神经网络RNN 未完待续
Flutter开发:报错The following assertion was thrown resolving an image codec:Unable to…的解决方法
【无标题】
细数国产接口协作平台的六把武器!
【裴蜀定理】CF1055C Lucky Days
【LeetCode】41. The first missing positive number