remove test

This commit is contained in:
ackimixs
2024-04-04 17:22:28 +02:00
parent 4fd7058973
commit f51875da53
2 changed files with 0 additions and 25 deletions

View File

@@ -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})

View File

@@ -1,20 +0,0 @@
#include <unistd.h>
#include <PiPCA9685/PCA9685.h>
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);
}
}