diff options
-rw-r--r-- | test.c | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -0,0 +1,29 @@ +#include "streamdeck.h" +#include <hidapi/hidapi.h> +#include <unistd.h> +#include <stdio.h> + +/* 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; +} |