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-05-26 13:15:11 +02:00
|
|
|
sp_Connection *connection = sp_connection_open("localhost:2342");
|
2024-05-12 18:28:53 +02:00
|
|
|
if (connection == NULL)
|
|
|
|
return 1;
|
|
|
|
|
2024-05-26 13:15:11 +02:00
|
|
|
sp_PixelGrid *pixels = sp_pixel_grid_new(sp_PIXEL_WIDTH, sp_PIXEL_HEIGHT);
|
|
|
|
sp_pixel_grid_fill(pixels, true);
|
2024-05-15 20:34:51 +02:00
|
|
|
|
2024-08-29 20:39:42 +02:00
|
|
|
sp_CCommand *command = sp_command_bitmap_linear_win(0, 0, pixels, Uncompressed);
|
2024-05-26 13:15:11 +02:00
|
|
|
sp_Packet *packet = sp_packet_from_command(command);
|
|
|
|
if (!sp_connection_send(connection, packet))
|
2024-05-15 20:34:51 +02:00
|
|
|
return 1;
|
2024-05-12 18:28:53 +02:00
|
|
|
|
2024-05-26 13:15:11 +02:00
|
|
|
sp_connection_dealloc(connection);
|
2024-05-12 18:28:53 +02:00
|
|
|
return 0;
|
|
|
|
}
|