📄 ledtest.c
字号:
/*
#include <linux/ioctl.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>*/
#include <unistd.h>
#include <stdio.h>
//#include <stdlib.h>
//#include <string.h>
//#include <sys/types.h>
//#include <sys/stat.h>
#include <fcntl.h>
static int fd = -1;
int main(void)
{
fd=open("/dev/ledflash",O_NONBLOCK,0);
if(fd<0)
{
printf("Can't open\n");
return -1;
}
close(fd);
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -