diff --git a/buffyboard.h b/buffyboard.h new file mode 100644 index 0000000..9a981dc --- /dev/null +++ b/buffyboard.h @@ -0,0 +1,36 @@ +/** + * Copyright 2021 Johannes Marbach + * + * This file is part of buffyboard, hereafter referred to as the program. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + +#ifndef BB_BUFFYBOARD_H +#define BB_BUFFYBOARD_H + +#include "lvgl/lvgl.h" + +#ifndef BB_VERSION +#define BB_VERSION "?" /* Just to silence IDE warning. Real version injected by meson during build. */ +#endif + +/** + * Fonts + */ + +LV_FONT_DECLARE(font_32); + +#endif /* BB_BUFFYBOARD_H */ diff --git a/command_line.c b/command_line.c index 068f168..35d6681 100644 --- a/command_line.c +++ b/command_line.c @@ -20,6 +20,8 @@ #include "command_line.h" +#include "buffyboard.h" + #include #include #include diff --git a/main.c b/main.c index a4d8bf9..68645d4 100644 --- a/main.c +++ b/main.c @@ -18,6 +18,7 @@ */ +#include "buffyboard.h" #include "command_line.h" #include "indev.h" #include "sq2lv_layouts.h" @@ -40,13 +41,6 @@ #include -/** - * Custom fonts - */ - -LV_FONT_DECLARE(font_32); - - /** * Static variables */