reset.c
来自「足球机器人自动程序」· C语言 代码 · 共 30 行
C
30 行
#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>#include <sys/ioctl.h>#include <linux/videodev.h>#include "pwc-ioctl.h"int main() { const char *dev = "/dev/video0"; int fd = open(dev, O_RDONLY); if (fd < 0) { perror("open"); return -1; } if (ioctl(fd, VIDIOCPWCFACTORY, NULL) < 0) { perror("ioctl VIDIOCPWCFACTORY"); return -1; } close(fd); return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?