From d521208dfa5d5d14848ca87b8cb4face1674cbb6 Mon Sep 17 00:00:00 2001 From: Peter Siegmund Date: Tue, 8 Aug 2023 21:38:18 +0200 Subject: [PATCH] add license header --- src/gfx/lgfx.cpp | 18 ++++++++++++++++++ src/gfx/lgfx.h | 18 ++++++++++++++++++ src/gfx/lv_setup.cpp | 20 +++++++++++++++++++- src/gfx/lv_setup.h | 18 ++++++++++++++++++ src/ui/launch_screen.cpp | 18 ++++++++++++++++++ src/ui/launch_screen.h | 18 ++++++++++++++++++ 6 files changed, 109 insertions(+), 1 deletion(-) diff --git a/src/gfx/lgfx.cpp b/src/gfx/lgfx.cpp index 586ebef..9b1c5b6 100644 --- a/src/gfx/lgfx.cpp +++ b/src/gfx/lgfx.cpp @@ -1,3 +1,21 @@ +//---------------------------------------------------------------------------- +// OS-Railway - Remote Control +// Copyright (C) 2023 Peter Siegmund (https://mars3142.dev) +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +// +//---------------------------------------------------------------------------- #include "gfx/lgfx.h" LGFX::LGFX() diff --git a/src/gfx/lgfx.h b/src/gfx/lgfx.h index e71420c..029b3b3 100644 --- a/src/gfx/lgfx.h +++ b/src/gfx/lgfx.h @@ -1,3 +1,21 @@ +//---------------------------------------------------------------------------- +// OS-Railway - Remote Control +// Copyright (C) 2023 Peter Siegmund (https://mars3142.dev) +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +// +//---------------------------------------------------------------------------- #pragma once #define LGFX_USE_V1 diff --git a/src/gfx/lv_setup.cpp b/src/gfx/lv_setup.cpp index 0e5fa51..89daba4 100644 --- a/src/gfx/lv_setup.cpp +++ b/src/gfx/lv_setup.cpp @@ -1,3 +1,21 @@ +//---------------------------------------------------------------------------- +// OS-Railway - Remote Control +// Copyright (C) 2023 Peter Siegmund (https://mars3142.dev) +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +// +//---------------------------------------------------------------------------- #include "gfx/lv_setup.h" #include @@ -58,7 +76,7 @@ void lv_begin() tft.init(); tft.setRotation(1); - lv_log_register_print_cb(print_cb); + // lv_log_register_print_cb(print_cb); lv_init(); diff --git a/src/gfx/lv_setup.h b/src/gfx/lv_setup.h index 70acb64..04ca1a9 100644 --- a/src/gfx/lv_setup.h +++ b/src/gfx/lv_setup.h @@ -1,3 +1,21 @@ +//---------------------------------------------------------------------------- +// OS-Railway - Remote Control +// Copyright (C) 2023 Peter Siegmund (https://mars3142.dev) +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +// +//---------------------------------------------------------------------------- #pragma once void lv_begin(); diff --git a/src/ui/launch_screen.cpp b/src/ui/launch_screen.cpp index 3960b0e..ceb73f6 100644 --- a/src/ui/launch_screen.cpp +++ b/src/ui/launch_screen.cpp @@ -1,3 +1,21 @@ +//---------------------------------------------------------------------------- +// OS-Railway - Remote Control +// Copyright (C) 2023 Peter Siegmund (https://mars3142.dev) +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +// +//---------------------------------------------------------------------------- #include "ui/launch_screen.h" #include diff --git a/src/ui/launch_screen.h b/src/ui/launch_screen.h index 0b21c59..5282dab 100644 --- a/src/ui/launch_screen.h +++ b/src/ui/launch_screen.h @@ -1,3 +1,21 @@ +//---------------------------------------------------------------------------- +// OS-Railway - Remote Control +// Copyright (C) 2023 Peter Siegmund (https://mars3142.dev) +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +// +//---------------------------------------------------------------------------- #pragma once void ui_LaunchScreen_open();