2 Star 5 Fork 3

ART-Pi / modbus2mqtt_gateway

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
led_red.c 300 Bytes
一键复制 编辑 原始数据 按行查看 历史
#include <rtthread.h>
#include <rtdevice.h>
#include "drv_common.h"
#define LED_PIN_RED GET_PIN(C, 15)
int led_red(void)
{
rt_pin_mode(LED_PIN_RED, PIN_MODE_OUTPUT);
rt_pin_write(LED_PIN_RED, !rt_pin_read(LED_PIN_RED));
return RT_EOK;
}
MSH_CMD_EXPORT(led_red, control red led flip);
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/art-pi/modbus2mqtt_gateway.git
git@gitee.com:art-pi/modbus2mqtt_gateway.git
art-pi
modbus2mqtt_gateway
modbus2mqtt_gateway
main

搜索帮助