fix(lv_conf_template.h): update to v8

This commit is contained in:
Gabor Kiss-Vamosi
2020-11-20 10:36:05 +01:00
parent 0daa222fdb
commit 42cd3302be
2 changed files with 10 additions and 42 deletions

View File

@@ -27,42 +27,14 @@ extern "C" {
* GLOBAL PROTOTYPES
**********************/
/*---------------------
* V7.0 COMPATIBILITY
*--------------------*/
#if LV_USE_API_EXTENSION_V7
#if LV_USE_CHART
static inline void lv_chart_set_range(lv_obj_t * chart, lv_coord_t ymin, lv_coord_t ymax)
{
lv_chart_set_y_range(chart, LV_CHART_AXIS_PRIMARY_Y, ymin, ymax);
}
static inline void lv_chart_clear_serie(lv_obj_t * chart, lv_chart_series_t * series)
{
lv_chart_clear_series(chart, series);
}
#ifndef LV_HOR_RES_MAX
# define LV_HOR_RES_MAX LV_HOR_RES_DEF
#endif
static inline void lv_obj_align_origo(lv_obj_t * obj, const lv_obj_t * base, lv_align_t align, lv_coord_t x_ofs,
lv_coord_t y_ofs)
{
// lv_obj_align_mid(obj, base, align, x_ofs, y_ofs);
}
#ifndef LV_VER_RES_MAX
# define LV_VER_RES_MAX LV_VER_RES_DEF
#endif
static inline void lv_obj_align_origo_x(lv_obj_t * obj, const lv_obj_t * base, lv_align_t align, lv_coord_t x_ofs)
{
// lv_obj_align_mid_y(obj, base, align, x_ofs);
}
static inline void lv_obj_align_origo_y(lv_obj_t * obj, const lv_obj_t * base, lv_align_t align, lv_coord_t y_ofs)
{
// lv_obj_align_mid_y(obj, base, align, y_ofs);
}
#endif /*LV_USE_API_EXTENSION_V6*/
/**********************
* MACROS
**********************/