Skip to content

Commit

Permalink
add ui.c/h and example.c/h
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor committed Dec 9, 2024
1 parent 47ad4d0 commit 98d8fee
Show file tree
Hide file tree
Showing 4 changed files with 183 additions and 0 deletions.
41 changes: 41 additions & 0 deletions examples/example.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/**
* @file example.c
*
*/

/*********************
* INCLUDES
*********************/

/*********************
* DEFINES
*********************/

/**********************
* TYPEDEFS
**********************/

/**********************
* STATIC PROTOTYPES
**********************/

/**********************
* STATIC VARIABLES
**********************/

/**********************
* MACROS
**********************/

/**********************
* GLOBAL FUNCTIONS
**********************/

void example_init(void)
{

}

/**********************
* STATIC FUNCTIONS
**********************/
50 changes: 50 additions & 0 deletions examples/example.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/**
* @file example.h
*
*/

#ifndef EXAMPLE_H
#define EXAMPLE_H

#ifdef __cplusplus
extern "C" {
#endif

/*********************
* INCLUDES
*********************/

/*Include all the widget and components of this library*/
#include "dark_slider/dark_slider.h"
#include "slider_box/slider_box.h"

/*********************
* DEFINES
*********************/

/**********************
* TYPEDEFS
**********************/

/**********************
* GLOBAL VARIABLES
**********************/

/**********************
* GLOBAL PROTOTYPES
**********************/

/**
* Initialize the component library
*/
void example_init(void);

/**********************
* MACROS
**********************/

#ifdef __cplusplus
} /*extern "C"*/
#endif

#endif /*EXAMPLE_H*/
42 changes: 42 additions & 0 deletions examples/ui.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/**
* @file ui.c
*
*/

/*********************
* INCLUDES
*********************/
#include "ui.h"

/*********************
* DEFINES
*********************/

/**********************
* TYPEDEFS
**********************/

/**********************
* STATIC PROTOTYPES
**********************/

/**********************
* STATIC VARIABLES
**********************/

/**********************
* MACROS
**********************/

/**********************
* GLOBAL FUNCTIONS
**********************/

void ui_init(void)
{
example_init();
}

/**********************
* STATIC FUNCTIONS
**********************/
50 changes: 50 additions & 0 deletions examples/ui.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/**
* @file ui.h
*
*/

#ifndef UI_H
#define UI_H

#ifdef __cplusplus
extern "C" {
#endif

/*********************
* INCLUDES
*********************/

/*Include all the UI libraryes*/
#include "lvgl/lvgl.h"
#include "example.h"

/*********************
* DEFINES
*********************/

/**********************
* TYPEDEFS
**********************/

/**********************
* GLOBAL VARIABLES
**********************/

/**********************
* GLOBAL PROTOTYPES
**********************/

/**
* Initialize all the custom component libraries (not calling `lv_init()`)
*/
void ui_init(void);

/**********************
* MACROS
**********************/

#ifdef __cplusplus
} /*extern "C"*/
#endif

#endif /*UI_H*/

0 comments on commit 98d8fee

Please sign in to comment.