2024-05-12 18:28:53 +02:00
|
|
|
#include <stdio.h>
|
2024-05-25 11:16:37 +02:00
|
|
|
#include "servicepoint.h"
|
2024-05-12 18:28:53 +02:00
|
|
|
|
|
|
|
int main(void) {
|
2024-09-05 21:15:53 +02:00
|
|
|
SPConnection *connection = sp_connection_open("172.23.42.29:2342");
|
2024-05-12 18:28:53 +02:00
|
|
|
if (connection == NULL)
|
|
|
|
return 1;
|
|
|
|
|
2024-09-05 21:15:53 +02:00
|
|
|
SPPixelGrid *pixels = sp_pixel_grid_new(SP_PIXEL_WIDTH, SP_PIXEL_HEIGHT);
|
2024-05-26 13:15:11 +02:00
|
|
|
sp_pixel_grid_fill(pixels, true);
|
2024-05-15 20:34:51 +02:00
|
|
|
|
2024-09-05 21:15:53 +02:00
|
|
|
SPCommand *command = sp_command_bitmap_linear_win(0, 0, pixels, Uncompressed);
|
2024-09-07 14:35:16 +02:00
|
|
|
while (sp_connection_send_command(connection, sp_command_clone(command)));
|
2024-05-12 18:28:53 +02:00
|
|
|
|
2024-09-07 14:35:16 +02:00
|
|
|
sp_command_free(command);
|
2024-09-07 14:11:15 +02:00
|
|
|
sp_connection_free(connection);
|
2024-05-12 18:28:53 +02:00
|
|
|
return 0;
|
|
|
|
}
|