From d265aa80d688614913ec28aced48f5d65ef7c7bc Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 1 Aug 2026 19:18:00 +0300 Subject: [PATCH] jiboync begining s & some work on bootsplash --- DevTools/JiboSync.py | 13 +++++++++++++ include/shell/boot/main.c | 24 +++++++++++++++++++++++- include/shell/boot/makefile.tegra | 20 ++++++++++++++++++++ 3 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 include/shell/boot/makefile.tegra diff --git a/DevTools/JiboSync.py b/DevTools/JiboSync.py index e69de29..3e7783c 100644 --- a/DevTools/JiboSync.py +++ b/DevTools/JiboSync.py @@ -0,0 +1,13 @@ + + +###################################### +# Quick Sync Tool for the jibo robot # +###################################### + + +# For ftp -> ftpd server required + +ROBOT_IP = 0.0.0.0 +PROTOCOL = "ftp" + + diff --git a/include/shell/boot/main.c b/include/shell/boot/main.c index 9057b80..4fd683a 100644 --- a/include/shell/boot/main.c +++ b/include/shell/boot/main.c @@ -2,6 +2,7 @@ #include #include +void show_boot_splash(SDL_Renderer* renderer, SDL_Texture* texture); int main(int argc, char *argv[]) { @@ -77,9 +78,11 @@ int main(int argc, char *argv[]) SDL_SetRenderDrawColor(renderer, 0,0,0,255); SDL_RenderClear(renderer); - SDL_RenderCopy(renderer,BootSplash_Texture,NULL,NULL); + show_boot_splash(renderer, BootSplash_Texture); SDL_RenderPresent(renderer); + + @@ -99,3 +102,22 @@ int main(int argc, char *argv[]) return EXIT_SUCCESS; } + + +void show_boot_splash( SDL_Renderer* renderer , SDL_Texture* texture){ + + if (!texture){ + + SDL_SetRenderDrawColor(renderer, 0,50,0,50); + SDL_RenderClear(renderer); + + } else { + + SDL_RenderCopy(renderer, texture, NULL,NULL); + + } + + + SDL_RenderCopy(renderer,texture, NULL, NULL); + +} diff --git a/include/shell/boot/makefile.tegra b/include/shell/boot/makefile.tegra new file mode 100644 index 0000000..882fe31 --- /dev/null +++ b/include/shell/boot/makefile.tegra @@ -0,0 +1,20 @@ +# Cross compiler prefix +CROSS_COMPILE ?= arm-none-linux-gnueabihf- +CC := $(CROSS_COMPILE)gcc + +# Fallback CFLAGS and LIBS if pkg-config cross-wrapper is missing +CFLAGS := -Wall -Wextra -O3 +LIBS := -lSDL2 -lSDL2_image + +TARGET := viewer_tegra +SRC := main.c + +.PHONY: all clean + +all: $(TARGET) + +$(TARGET): $(SRC) + $(CC) $(CFLAGS) $< -o $@ $(LIBS) + +clean: + rm -f $(TARGET)