wip 80k example

This commit is contained in:
Vinzenz Schroeter 2025-04-11 20:43:13 +02:00
parent 57d9e90b0f
commit 69bed7c665
8 changed files with 121 additions and 49 deletions

View file

@ -2,14 +2,20 @@
#include "servicepoint.h"
int main(void) {
SPUdpConnection *connection = sp_connection_open("localhost:2342");
SPConnection *connection = sp_connection_open("localhost:2342");
if (connection == NULL)
return 1;
SPBitmap *pixels = sp_bitmap_new(SP_PIXEL_WIDTH, SP_PIXEL_HEIGHT);
if (pixels == NULL)
return 1;
sp_bitmap_fill(pixels, true);
SPCommand *command = sp_command_bitmap_linear_win(0, 0, pixels, SP_COMPRESSION_CODE_UNCOMPRESSED);
if (command == NULL)
return 1;
sp_connection_send_command(connection, command);
sp_connection_free(connection);