diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ea05a9..e796b03 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,10 +12,5 @@ add_executable(servo_motor MyTCPClient.h main.cpp) -add_executable(test - test.main.cpp -) - target_link_libraries(servo_motor TCPSocket) target_link_libraries(servo_motor ${PiPCA9685_LIBRARY}) -target_link_libraries(test ${PiPCA9685_LIBRARY}) \ No newline at end of file diff --git a/test.main.cpp b/test.main.cpp deleted file mode 100644 index 2f742ff..0000000 --- a/test.main.cpp +++ /dev/null @@ -1,20 +0,0 @@ -#include -#include - -int main() { - - PiPCA9685::PCA9685 pca{}; - - pca.set_pwm_freq(50.0); - - while(true) { - pca.set_pwm(0, 0, 370); - usleep(1'000'000); - pca.set_pwm(1, 0, 415); - usleep(1'000'000); - pca.set_pwm(1, 0, 460); - usleep(1'000'000); - pca.set_pwm(0, 0, 415); - usleep(1'000'000); - } -} \ No newline at end of file