![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C语言基础
河边钓虾
这个作者很懒,什么都没留下…
展开
-
头节点单链表
直接上代码 #include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct list{ int num; struct list *next; }list_t; //链表头初始化 list_t *list_init() { list_t *head = (list_t *)malloc(sizeof(list_t)); if(head == NUL原创 2021-06-01 17:55:52 · 94 阅读 · 0 评论 -
使用alios things rel1.6.6实现私有蓝牙配网
修改蓝牙UUID alios things SDK默认蓝牙UUID如下: 修改UUID(函数:ble_stack_init)如下: 其余按照自己需求修改UUID 蓝牙广播包组包 蓝牙广播 蓝牙数据包解析 保存wifi的ssid和passwd 简单粗暴型 正常型 ...原创 2021-06-01 13:41:08 · 272 阅读 · 0 评论 -
HSV HSL与RGB转换
算法公式请参考:转换公式 转换工具请参考:在线转换 下方代码可直接编译测试 #include <stdio.h> // #define RAND_MAX_ONE //h:0-360 s:0-1 v:0-1 非百分比 #define RAND_MAX_HUNDRED //h:0-360 s:0-100 v:0-100 百分比 #define MAX(R,G,B) (((R)>(G))?(((R)>(B))?(R):(B)):(((原创 2021-02-04 14:40:00 · 290 阅读 · 0 评论