create file motor.c
This commit is contained in:
18
project/motor.c
Normal file
18
project/motor.c
Normal file
@@ -0,0 +1,18 @@
|
||||
#include<stdio.h>
|
||||
#include<fctnl.h>
|
||||
#include<string.h>
|
||||
#include<unistd.h>
|
||||
|
||||
#define BASEPATH "/sys/class/gpio/"
|
||||
#define GPIO_FOLDER "gpio%s/"
|
||||
|
||||
#define PIN_IN1 "6"
|
||||
#define PIN_IN2 "13"
|
||||
#define PIN_IN3 "19"
|
||||
#define PIN_IN4 "26"
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user