From aaa199a4b9750700d5ea3463615272e30bb98fa3 Mon Sep 17 00:00:00 2001 From: Joshua Liu Date: Sat, 20 Sep 2025 18:46:55 -0400 Subject: feat: new test file --- test.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 test.c (limited to 'test.c') diff --git a/test.c b/test.c new file mode 100644 index 0000000..3fc5a04 --- /dev/null +++ b/test.c @@ -0,0 +1,29 @@ +#include "streamdeck.h" +#include +#include +#include + +/* The point of this file is to test the backend */ +int main() { + if (init ()) + { + return -1; + } + // handler* streamdeck_handler = create_hid_handler (); + streamdeck* mini = connect(); + if (!mini) + { + return -2; + } + reset(mini->hid_handle); + sleep (10); + printf("butterdog\n"); + if (set_brightness(mini, 10) == -1) + printf("failed\n"); + sleep (3); + set_brightness(mini, 100); + destroy_streamdeck(mini); + printf("done!\n"); + clean_exit(); + return 0; +} -- cgit v1.2.3