随笔分类 - C/C++
摘要:效果: 源码: // guitool_demo.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> #include <stdio.h> #include <windows.h> #define PIXELS_PER_BYTE 8
阅读全文
摘要:lv_label_set_text_fmt(amountObj, "$%d.%02d", atoi(amount) / 100, atoi(amount) % 100); 该接口默认不支持浮点型,源码编译的时候需要手动开启
阅读全文
摘要:char str[] = "apple,banana,cherry,date,我不是萧海哇"; // 必须是可修改的字符数组 const char delimiters[] = ","; // 分隔符 char** output=NULL; int cnt = 0; printf("Original
阅读全文
摘要:void at_cmd_pasre(char *cmd) { int32_t para_int_1 = 0; char para_str_2[32] = { 0 }; char para_str_3[32] = { 0 }; char* p = cmd; int ret = -1; p = strs
阅读全文
该文被密码保护。
摘要:1. 源码获取 首先使用git-bash拉取esp-at代码 git clone https://jihulab.com/esp-mirror/espressif/esp-at.git 切换到你想要编译的固件版本 git checkout release/v3.3.1.0 切记一定要使用git命令拉
阅读全文
摘要:typedef struct { void* ptr; size_t size; const char* file; int line; } AllocInfo; AllocInfo alloc_table[1024]; int alloc_count = 0; void* tracked_mall
阅读全文
该文被密码保护。
摘要:如果你需要在 Visual Studio (VS) 中使用 FreeType 库(freetype.lib)来编译 mcufont 或相关字体处理代码,可以按照以下步骤进行配置: 1. 获取 FreeType 库 (1) 下载 FreeType 官网:FreeType Download 选择 Win
阅读全文

浙公网安备 33010602011771号