- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 Eclipse环境下搭建eureka注册中心单机版环境
安装yaml编辑器,将application.properties更改为application.yaml其中代码更改如下:下面展示一些 内联代码片。server: port: 8761eureka: instance: hostname: localhost client: registerWithEureka: false fetchRegistry: false serviceUrl: defaultZone: http://${eure
2021-10-26 13:22:20
275
原创 在LCD上显示展示的字符
程序执行过程将要展示的字符写入.txt文件当中,读取文件,使用show_chinese1函数将字符显示到LCD上部分代码解释打开文件,设置为只读 fd = open("chengduw.txt",O_RDONLY);使用字符数组读入字符unsigned char buffer3[256];将字符逐个显示到LCD上 cnt = read(fd,buffer3,256); printf("%d \n",cnt); while(cnt){ printf("jjjj \n");
2021-07-16 19:59:04
1965
原创 cc2530物联网按键方式控制LED灯的亮暗
功能模块使用两个按键,一个控制按键的开,另一个按键控制按键的关闭。代码模块#include <ioCC2530.h>#define LED1 P1_4#define S5 P0_4#define S6 P0_5#define ON 0#define OFF 1#define DOWN 0#define UP 1void led_init(void);void key_init(void);void delay_ms(int nms);unsigned char pol
2021-07-12 14:21:34
2326
原创 CC2530物联网两个LED交替闪烁
CC2530物联网使用查询方式按键控制LED的亮暗代码功能源码代码功能两个点灯交替闪烁源码/*程序名 led.c版权所有 华迪作者 李雪版本 1.0完成日期 xxxx更改*/#include <ioCC2530.h>#define LED1 P1_4#define LED2 P0_1#define ON 0#define OFF 1void led_init(void);void delay_ms(int nms);void main(void){ l
2021-07-12 14:10:10
3851
2
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人