月度归档: 2026 年 5 月

9 篇文章

thumbnail
LVGL图形库移植arm平台
0.为什么需要“额外”的源码包? $LVGL$ 为了保持高度的可移植性,把图形算法和底层硬件驱动完全解耦了。 1. 核心库 ($LVGL$) 这是你说的“直接下的源码”。它负责计算: 按钮什么时候该变色? 动画的轨迹怎么算? 多个图层怎么叠加? 但它不负责驱动屏幕。 它只输出一堆代表像素颜色的原始数据。 2. 驱动库 ($lv_drivers$) …
thumbnail
心知天气API请求示例
/** * @filename: jsonparsing.c * @brief: 建立tcp连接,向api接口请求天气数据。并对返回的JSON字符串解析 * @author: philia * @date: 2026/4/25 * @version: ver1.0 * @note none * CopyRight (c) 2026 philia A…
thumbnail
vscode嵌入式开发环境配置
0前言 传统的keil客户端开发,不支持插件,出现问题还要复制给ai,麻烦且效率低下,写个括号都不会补全 vscode为集成开发软件,有ai插件,还有代码补全,有语法高亮等等 都什么年代了,还在传统开发 1.下载Micorsoft Vs Code 点这里 2.配置EIDE插件 2.1安装EIDE插件 安装完后侧边栏出现EIDE插件 2.2创建一个新…
thumbnail
TCP简单通信实现
/** * @filename: tcp_client.c * @brief: tcp communication * @author: philia * @date: 2026/4/19 * @version: ver1.0 * @note 客户端发送消息,后运行 * CopyRight (c) 2026 philia All Right Res…
thumbnail
TCP超时机制练习
/** * @filename: tcp_server.c * @brief: tcp communication * @author: philia * @date: 2026/4/19 * @version: ver1.0 * @note 服务端接收消息,先运行,加入10秒超时机制 * CopyRight (c) 2026 philia All…
thumbnail
解析域名下的IP地址
#include <stdio.h> #include <string.h> #include <sys/socket.h> #include <netdb.h> #include <arpa/inet.h> int main(int argc, char *argv[]) { if (argc != 2) { fpr…
thumbnail
UDP多播代码实现
/** * @filename: udp_Broadcast_Send.c * @brief: udp Broadcast * @author: philia * @date: 2026/4/21 * @version: ver1.0 * @note 此端发送消息 * CopyRight (c) 2026 philia All Right Rese…
thumbnail
设置UDP的广播属性
/** * @filename: UDP_BROADCAST.c * @brief: UDP_BROADCAST * @author: philia * @date: 2026/4/19 * @version: ver1.0 * @note NONE * CopyRight (c) 2026 philia All Right Reseverd */…
thumbnail
UDP双向通信
/** * @filename: Two-way communication.c * @brief: Two-way communication * @author: philia * @date: 2026/4/19 * @version: ver1.0 * @note 客户端和服务器同文件 * CopyRight (c) 2026 philia…