Wyatt  1.0.1
wiringPi.h
1 //
2 // Created by Arthur Lockman on 4/5/17.
3 //
4 
5 #ifndef WYATT_WIRINGPI_H
6 #define WYATT_WIRINGPI_H
7 
8 #include <sys/time.h>
9 
10 #define HIGH 1
11 #define LOW 0
12 
13 #define INPUT 1
14 #define OUTPUT 2
15 #define PWM_OUTPUT 3
16 #define PUD_OFF 0
17 #define PUD_DOWN 1
18 #define PUD_UP 2
19 
20 // Setup Functions
21 int wiringPiSetup(void);
22 int wiringPiSetupGpio(void);
23 int wiringPiSetupSys(void);
24 
25 // Wiring Functions
26 void pinMode(int pin, int mode);
27 void digitalWrite(int pin, int value);
28 void digitalWriteByte(int value);
29 void pwmWrite(int pin, int value);
30 int digitalRead(int pin);
31 void pullUpDnControl(int pin, int pud);
32 
33 // Timing
39 unsigned int millis(void);
40 void delay(unsigned int howLong);
41 void delayMicroseconds(unsigned int howLong);
42 #endif