Compare commits

...

2 Commits

Author SHA1 Message Date
5a25af8037 Images and explanation added. 2025-10-14 20:00:07 +03:00
3222df4919 Font added locally. 2025-10-14 19:59:50 +03:00
7 changed files with 22 additions and 1 deletions

6
.idea/vcs.xml generated Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

15
Readme.md Normal file
View File

@ -0,0 +1,15 @@
# UART_clay
Це додаток до другої лабораторної роботи з Проєктування вбудованих систем.
Це клієнтський застосунок з графічним інтерфейсом розробленим за допомогою бібліотек SDL і Clay UI.
UART_clay використовує стандартні Лінукс-хедери для доступу до серіального порту (у моєму випадку "/dev/ttyUSB0") та його налаштування, що дозволяє користувачам керувати моєю UART-програмою графічно та бачити її відповіді.
Приклади виконання додатка можна бачити [тут](multimedia).
![](multimedia/app.png)
![](multimedia/app_modal.png)
![](multimedia/example.webm)

View File

@ -75,7 +75,7 @@ SDL_AppResult SDL_AppInit(void **appstate, const int argc, char *argv[]) {
SDL_LogError(SDL_LOG_CATEGORY_ERROR, "Failed to allocate memory for the font array: %s", SDL_GetError()); SDL_LogError(SDL_LOG_CATEGORY_ERROR, "Failed to allocate memory for the font array: %s", SDL_GetError());
} }
FILE* FontFile = fopen("/usr/share/fonts/TTF/JetBrainsMonoNerdFont-Regular.ttf", "rb"); FILE* FontFile = fopen("resources/JetBrainsMonoNerdFont-Regular.ttf", "rb");
fseek(FontFile, 0, SEEK_END); fseek(FontFile, 0, SEEK_END);
const long FontSize = ftell(FontFile); const long FontSize = ftell(FontFile);

BIN
multimedia/app.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
multimedia/app_modal.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
multimedia/example.webm Normal file

Binary file not shown.

Binary file not shown.