Compare commits
	
		
			2 Commits
		
	
	
		
			ec2f7f033a
			...
			5a25af8037
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 5a25af8037 | |||
| 3222df4919 | 
							
								
								
									
										6
									
								
								.idea/vcs.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								.idea/vcs.xml
									
									
									
										generated
									
									
									
										Normal 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
									
								
							
							
						
						
									
										15
									
								
								Readme.md
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,15 @@
 | 
				
			|||||||
 | 
					# UART_clay
 | 
				
			||||||
 | 
					Це додаток до другої лабораторної роботи з Проєктування вбудованих систем.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Це клієнтський застосунок з графічним інтерфейсом розробленим за допомогою бібліотек SDL і Clay UI.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					UART_clay використовує стандартні Лінукс-хедери для доступу до серіального порту (у моєму випадку "/dev/ttyUSB0") та його налаштування, що дозволяє користувачам керувати моєю UART-програмою графічно та бачити її відповіді.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Приклади виконання додатка можна бачити [тут](multimedia).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -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
									
								
							
							
						
						
									
										
											BIN
										
									
								
								multimedia/app.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 18 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								multimedia/app_modal.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								multimedia/app_modal.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 20 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								multimedia/example.webm
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								multimedia/example.webm
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								resources/JetBrainsMonoNerdFont-Regular.ttf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								resources/JetBrainsMonoNerdFont-Regular.ttf
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user