updated example files
This commit is contained in:
@@ -3,7 +3,7 @@ DW = ../../darkwater
|
||||
INCLUDES = -I ../..
|
||||
|
||||
all:
|
||||
$(CC) $(INCLUDES) Servo.cpp $(DW)/DW640.cpp $(DW)/PCA9685.cpp $(DW)/I2Cdev.cpp $(DW)/gpio.cpp $(DW)/Util.cpp -o Servo
|
||||
$(CC) $(INCLUDES) Servo.cpp $(DW)/DWESCAPE.cpp $(DW)/PCA9685.cpp $(DW)/I2Cdev.cpp $(DW)/gpio.cpp $(DW)/Util.cpp -o Servo
|
||||
|
||||
clean:
|
||||
rm Servo
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#define SERVO_MIN 1.250 /*mS*/
|
||||
#define SERVO_MAX 1.750 /*mS*/
|
||||
|
||||
#include "darkwater/DW640.h"
|
||||
#include "darkwater/DWESCAPE.h"
|
||||
#include "darkwater/Util.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -14,7 +14,7 @@ int main()
|
||||
return 1;
|
||||
}
|
||||
|
||||
DW640 dw;
|
||||
DWESCAPE dw;
|
||||
dw.initialize();
|
||||
dw.setFrequency(50);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user