
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 · 122 阅读 · 0 评论 -
使用alios things rel1.6.6实现私有蓝牙配网
修改蓝牙UUIDalios things SDK默认蓝牙UUID如下:修改UUID(函数:ble_stack_init)如下:其余按照自己需求修改UUID蓝牙广播包组包蓝牙广播蓝牙数据包解析保存wifi的ssid和passwd简单粗暴型正常型...原创 2021-06-01 13:41:08 · 343 阅读 · 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 · 365 阅读 · 0 评论