create file motor.c

This commit is contained in:
Siegfried Kienzle
2017-04-22 15:57:35 +02:00
parent 6b08efc581
commit 70969386a6

18
project/motor.c Normal file
View 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;
}