#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int main(int argc ,char **argv)
{
int fd;
int data;
int chanel;
int i;
fd=open("/dev/bujindev",O_RDWR);
if(fd<0){
printf("cannot open");
}
printf("please chane the flage");
scanf("%d",&chanel) ;
write(fd,&chanel,1);
lseek(fd,0,SEEK_SET);
close(fd);
return 0;
}
步进电机测试
最新推荐文章于 2024-08-16 10:54:46 发布