当前位置:网站首页>手把手带你写嵌入式物联网的第一个项目
手把手带你写嵌入式物联网的第一个项目
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
边栏推荐
- strongest brain (1)
- 如何取得某月的最后一天
- Guys, is it normal that the oracle archive log grows by 3G in 20 minutes after running cdc?
- MySql之json_extract函数处理json字段
- Consulting cdc 2.0 for mysql does not execute flush with read lock. How to ensure bin
- Thread.sleep, Thread.yield role explanation
- Touch chip used in smart touch remote control
- Mysql CDC (2.1.1) inital snapshot database set up five concurrent degree, se
- ThreadPoolExecutor线程池原理
- Get started with the OAuth protocol easily with a case
猜你喜欢

Stacks and Queues | Valid parentheses, delete all adjacent elements in a string, reverse Polish expression evaluation, maximum sliding window, top K high frequency elements | leecode brush questions

tensorflow分词深度学习——影评预测

线程(中):线程安全

接口文档进化图鉴,有些古早接口文档工具,你可能都没用过

线程(上篇):线程的创建

顺序表的删除,插入和查找操作

通过一个案例轻松入门OAuth协议

基于BP神经网络的多因素房屋价格预测matlab仿真

Hezhou ESP32C3 +1.8"tft network clock under Arduino framework

【Pei Shu Theorem】CF1055C Lucky Days
随机推荐
When oracle cdc, set the parallelism to 2 and the number of slots to 1, and the final task has only one tm. Is it because oracle does not support concurrency
FPGA engineer interview questions collection 11~20
Arduino框架下合宙ESP32C3 +1.8“tft 网络时钟
Flutter development: error The following assertion was thrown resolving an image codec: Solution for Unable to...
I have a dream for Career .
深度学习——循环神经网络RNN 未完待续
Hezhou ESP32C3 +1.8"tft network clock under Arduino framework
线程(中):线程安全
8.STM32F407之HAL库——PWM笔记
转型做产品,考NPDP靠谱吗?
How to improve product quality from the code layer
ThreadPoolExecutor thread pool principle
FPGA工程师面试试题集锦21~30
线性代数(四)
Interface debugging also can play this?
FPGA engineer interview questions collection 31~40
Zhongang Mining: Strong downstream demand for fluorite
Concurrency tool class - introduction and use of CountDownLatch, CyclicBarrier, Semaphore, Exchanger
An article to master the entire JVM, JVM ultra-detailed analysis!!!
聊聊 API 管理-开源版 到 SaaS 版