BigW Consortium Gitlab

Commit c3471fd0 by Gabor Kiss-Vamosi

lv_misc files added from misc repo

parent c5b9a4eb
......@@ -13,11 +13,11 @@
#include "lv_draw.h"
#include "lv_draw_rbasic.h"
#include "lv_draw_vbasic.h"
#include "misc/gfx/text.h"
#include "misc/gfx/circ.h"
#include "misc/fs/fsint.h"
#include "misc/math/math_base.h"
#include "misc/fs/ufs/ufs.h"
#include "../lv_misc/lv_text.h"
#include "../lv_misc/lv_circ.h"
#include "../lv_misc/lv_fs.h"
#include "../lv_misc/lv_math.h"
#include "../lv_misc/lv_ufs.h"
#include "../lv_objx/lv_img.h"
/*********************
......
......@@ -14,7 +14,7 @@ extern "C" {
* INCLUDES
*********************/
#include "misc_conf.h"
#include "misc/gfx/text.h"
#include "../lv_misc/lv_text.h"
#include "../lv_obj/lv_style.h"
/*********************
......
......@@ -9,7 +9,7 @@
#include "../lv_hal/lv_hal_disp.h"
#include "lv_draw_rbasic.h"
#include "lv_conf.h"
#include "misc/gfx/font.h"
#include "../lv_misc/lv_font.h"
/*********************
* DEFINES
......
......@@ -13,9 +13,9 @@ extern "C" {
/*********************
* INCLUDES
*********************/
#include "misc/gfx/color.h"
#include "misc/gfx/area.h"
#include "misc/gfx/font.h"
#include "../lv_misc/lv_color.h"
#include "../lv_misc/lv_area.h"
#include "../lv_misc/lv_font.h"
/*********************
* DEFINES
......
......@@ -10,9 +10,9 @@
#include <string.h>
#include "../lv_hal/lv_hal_disp.h"
#include "misc/gfx/area.h"
#include "misc/gfx/font.h"
#include "misc/gfx/color.h"
#include "../lv_misc/lv_area.h"
#include "../lv_misc/lv_font.h"
#include "../lv_misc/lv_color.h"
#if LV_VDB_SIZE != 0
......
......@@ -17,9 +17,9 @@ extern "C" {
#if LV_VDB_SIZE != 0
#include "misc/gfx/color.h"
#include "misc/gfx/area.h"
#include "misc/gfx/font.h"
#include "../lv_misc/lv_color.h"
#include "../lv_misc/lv_area.h"
#include "../lv_misc/lv_font.h"
/*********************
* DEFINES
......
......@@ -12,7 +12,7 @@
#include <stdint.h>
#include <stddef.h>
#include "../lv_hal/lv_hal_disp.h"
#include "misc/mem/dyn_mem.h"
#include "../lv_misc/lv_mem.h"
/*********************
* DEFINES
......
......@@ -18,7 +18,7 @@ extern "C" {
#include <stdint.h>
#include <stdbool.h>
#include "lv_hal.h"
#include "misc/gfx/color.h"
#include "../lv_misc/lv_color.h"
/*********************
* DEFINES
......
......@@ -9,7 +9,7 @@
* INCLUDES
*********************/
#include "../lv_hal/lv_hal_indev.h"
#include "misc/mem/linked_list.h"
#include "../lv_misc/lv_mem.h"
/*********************
* DEFINES
......
......@@ -18,7 +18,7 @@ extern "C" {
#include <stdbool.h>
#include <stdint.h>
#include "lv_hal.h"
#include "misc/gfx/area.h"
#include "../lv_misc/lv_area.h"
/*********************
* DEFINES
......
/**
* @file anim.h
*
*/
#ifndef ANIM_H
#define ANIM_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "misc_conf.h"
/*For compatibility always include this header*/
#include <stdint.h>
#include <stdbool.h>
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
typedef enum
{
ANIM_PATH_LIN,
ANIM_PATH_STEP,
}anim_path_name_t;
typedef uint8_t anim_path_t;
typedef void (*anim_fp_t)(void *, int32_t);
typedef void (*anim_cb_t)(void *);
typedef struct
{
void * var; /*Variable to animate*/
anim_fp_t fp; /*Animator function*/
anim_cb_t end_cb; /*Call it when the animation is ready*/
anim_path_t * path; /*An array with the steps of animations*/
int32_t start; /*Start value*/
int32_t end; /*End value*/
int16_t time; /*Animation time in ms*/
int16_t act_time; /*Current time in animation. Set to negative to make delay.*/
uint16_t playback_pause; /*Wait before play back*/
uint16_t repeat_pause; /*Wait before repeat*/
uint8_t playback :1; /*When the animation is ready play it back*/
uint8_t repeat :1; /*Repeat the animation infinitely*/
/*Animation system use these - user shouldn't set*/
uint8_t playback_now :1; /*Play back is in progress*/
}anim_t;
/*Example initialization
anim_t a;
a.var = obj;
a.start = lv_obj_get_height(obj);
a.end = new_height;
a.fp = (anim_fp_t)lv_obj_set_height;
a.path = anim_get_path(ANIM_PATH_LIN);
a.end_cb = NULL;
a.act_time = 0;
a.time = 200;
a.playback = 0;
a.playback_pause = 0;
a.repeat = 0;
a.repeat_pause = 0;
*/
/**********************
* GLOBAL PROTOTYPES
**********************/
/**
* Init. the animation module
*/
void anim_init(void);
/**
* Create an animation
* @param anim_p an initialized 'anim_t' variable. Not required after call.
*/
void anim_create(anim_t * anim_p);
/**
* Delete an animation for a variable with a given animatior function
* @param var pointer to variable
* @param fp a function pointer which is animating 'var',
* or NULL to ignore it and delete all animation with 'var
* @return true: at least 1 animation is deleted, false: no animation is deleted
*/
bool anim_del(void * var, anim_fp_t fp);
/**
* Calculate the time of an animation with a given speed and the start and end values
* @param speed speed of animation in unit/sec
* @param start start value of the animation
* @param end end value of the animation
* @return the required time [ms] for the animation with the given parameters
*/
uint16_t anim_speed_to_time(uint16_t speed, int32_t start, int32_t end);
/**
* Get a predefine animation path
* @param name name of the path from 'anim_path_name_t'
* @return pointer to the path array
*/
anim_path_t * anim_get_path(anim_path_name_t name);
/**********************
* MACROS
**********************/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif
/**
* @file 2d.c
*
*/
/*********************
* INCLUDES
*********************/
#include "misc_conf.h"
#if USE_AREA != 0
#include "lv_area.h"
#include "lv_math.h"
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
/**********************
* STATIC PROTOTYPES
**********************/
/**********************
* STATIC VARIABLES
**********************/
/**********************
* MACROS
**********************/
/**********************
* GLOBAL FUNCTIONS
**********************/
/**
* Initialize an area
* @param area_p pointer to an area
* @param x1 left coordinate of the area
* @param y1 top coordinate of the area
* @param x2 right coordinate of the area
* @param y2 bottom coordinate of the area
*/
void area_set(area_t * area_p, cord_t x1, cord_t y1, cord_t x2, cord_t y2)
{
area_p->x1 = x1;
area_p->y1 = y1;
area_p->x2 = x2;
area_p->y2 = y2;
}
/**
* Set the width of an area
* @param area_p pointer to an area
* @param w the new width of the area (w == 1 makes x1 == x2)
*/
void area_set_width(area_t * area_p, cord_t w)
{
area_p->x2 = area_p->x1 + w - 1;
}
/**
* Set the height of an area
* @param area_p pointer to an area
* @param h the new height of the area (h == 1 makes y1 == y2)
*/
void area_set_height(area_t * area_p, cord_t h)
{
area_p->y2 = area_p->y1 + h - 1;
}
/**
* Set the position of an area (width and height will be kept)
* @param area_p pointer to an area
* @param x the new x coordinate of the area
* @param y the new y coordinate of the area
*/
void area_set_pos(area_t * area_p, cord_t x, cord_t y)
{
cord_t w = area_get_width(area_p);
cord_t h = area_get_height(area_p);
area_p->x1 = x;
area_p->y1 = y;
area_set_width(area_p, w);
area_set_height(area_p, h);
}
/**
* Return with area of an area (x * y)
* @param area_p pointer to an area
* @return size of area
*/
uint32_t area_get_size(const area_t * area_p)
{
uint32_t size;
size = (uint32_t)(area_p->x2 - area_p->x1 + 1) *
(area_p->y2 - area_p->y1 + 1);
return size;
}
/**
* Get the common parts of two areas
* @param res_p pointer to an area, the result will be stored her
* @param a1_p pointer to the first area
* @param a2_p pointer to the second area
* @return false: the two area has NO common parts, res_p is invalid
*/
bool area_union(area_t * res_p, const area_t * a1_p, const area_t * a2_p)
{
/* Get the smaller area from 'a1_p' and 'a2_p' */
res_p->x1 = MATH_MAX(a1_p->x1, a2_p->x1);
res_p->y1 = MATH_MAX(a1_p->y1, a2_p->y1);
res_p->x2 = MATH_MIN(a1_p->x2, a2_p->x2);
res_p->y2 = MATH_MIN(a1_p->y2, a2_p->y2);
/*If x1 or y1 greater then x2 or y2 then the areas union is empty*/
bool union_ok = true;
if((res_p->x1 > res_p->x2) ||
(res_p->y1 > res_p->y2))
{
union_ok = false;
}
return union_ok;
}
/**
* Join two areas into a third which involves the other two
* @param res_p pointer to an area, the result will be stored here
* @param a1_p pointer to the first area
* @param a2_p pointer to the second area
*/
void area_join(area_t * a_res_p, const area_t * a1_p, const area_t * a2_p)
{
a_res_p->x1 = MATH_MIN(a1_p->x1, a2_p->x1);
a_res_p->y1 = MATH_MIN(a1_p->y1, a2_p->y1);
a_res_p->x2 = MATH_MAX(a1_p->x2, a2_p->x2);
a_res_p->y2 = MATH_MAX(a1_p->y2, a2_p->y2);
}
/**
* Check if a point is on an area
* @param a_p pointer to an area
* @param p_p pointer to a point
* @return false:the point is out of the area
*/
bool area_is_point_on(const area_t * a_p, const point_t * p_p)
{
bool is_on = false;
if((p_p->x >= a_p->x1 && p_p->x <= a_p->x2) &&
((p_p->y >= a_p->y1 && p_p->y <= a_p->y2)))
{
is_on = true;
}
return is_on;
}
/**
* Check if two area has common parts
* @param a1_p pointer to an area.
* @param a2_p pointer to an other area
* @return false: a1_p and a2_p has no common parts
*/
bool area_is_on(const area_t * a1_p, const area_t * a2_p)
{
/*Two area are on each other if... */
point_t p;
/*a2 left-top corner is on a1*/
p.x = a2_p->x1;
p.y = a2_p->y1;
if(area_is_point_on(a1_p, &p)) return true;
/*a2 right-top corner is on a1*/
p.x = a2_p->x1;
p.y = a2_p->y1;
if(area_is_point_on(a1_p, &p)) return true;
/*a2 left-bottom corner is on a1*/
p.x = a2_p->x1;
p.y = a2_p->y2;
if(area_is_point_on(a1_p, &p)) return true;
/*a2 right-bottom corner is on a1*/
p.x = a2_p->x2;
p.y = a2_p->y2;
if(area_is_point_on(a1_p, &p)) return true;
/*a2 is horizontally bigger then a1 and covers it*/
if((a2_p->x1 <= a1_p->x1 && a2_p->x2 >= a1_p->x2) && /*a2 hor. cover a1?*/
((a2_p->y1 <= a1_p->y1 && a2_p->y1 >= a1_p->y2) || /*upper edge is on a1?*/
(a2_p->y2 <= a1_p->y1 && a2_p->y2 >= a1_p->y2) ||/* or lower edge is on a1?*/
(a2_p->y1 <= a1_p->y1 && a2_p->y2 >= a1_p->y2))) /*or a2 vert bigger then a1*/
return true;
/*a2 is vertically bigger then a1 and covers it*/
if((a2_p->y1 <= a1_p->y1 && a2_p->y2 >= a1_p->y2) && /*a2 vert. cover a1?*/
((a2_p->x1 <= a1_p->x1 && a2_p->x1 >= a1_p->x2) || /*left edge is on a1?*/
(a2_p->x2 <= a1_p->x1 && a2_p->x2 >= a1_p->x2) ||/* or right edge is on a1?*/
(a2_p->x1 <= a1_p->x1 && a2_p->x2 >= a1_p->x2))) /*or a2 hor. bigger then a1*/
return true;
/*Else no cover*/
return false;
}
/**
* Check if an area is fully on an other
* @param ain_p pointer to an area which could be on aholder_p
* @param aholder pointer to an area which could involve ain_p
* @return
*/
bool area_is_in(const area_t * ain_p, const area_t * aholder_p)
{
bool is_in = false;
if(ain_p->x1 >= aholder_p->x1 &&
ain_p->y1 >= aholder_p->y1 &&
ain_p->x2 <= aholder_p->x2 &&
ain_p->y2 <= aholder_p->y2)
{
is_in = true;
}
return is_in;
}
/**********************
* STATIC FUNCTIONS
**********************/
#endif /*USE_AREA*/
/**
* @file area.h
*
*/
#ifndef AREA_H
#define AREA_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "misc_conf.h"
#if USE_AREA != 0
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
/*********************
* DEFINES
*********************/
#define CORD_MAX (16383) /*To avoid overflow don't let the max [-32,32k] range */
#define CORD_MIN (-16384)
/**********************
* TYPEDEFS
**********************/
typedef int16_t cord_t;
typedef struct
{
cord_t x;
cord_t y;
}point_t;
typedef struct
{
cord_t x1;
cord_t y1;
cord_t x2;
cord_t y2;
}area_t;
/**********************
* GLOBAL PROTOTYPES
**********************/
/**
* Initialize an area
* @param area_p pointer to an area
* @param x1 left coordinate of the area
* @param y1 top coordinate of the area
* @param x2 right coordinate of the area
* @param y2 bottom coordinate of the area
*/
void area_set(area_t * area_p, cord_t x1, cord_t y1, cord_t x2, cord_t y2);
/**
* Copy an area
* @param dest pointer to the destination area
* @param src pointer to the source area
*/
static void inline area_cpy(area_t * dest, const area_t * src)
{
memcpy(dest, src, sizeof(area_t));
}
/**
* Get the width of an area
* @param area_p pointer to an area
* @return the width of the area (if x1 == x2 -> width = 1)
*/
static inline cord_t area_get_width(const area_t * area_p)
{
return area_p->x2 - area_p->x1 + 1;
}
/**
* Get the height of an area
* @param area_p pointer to an area
* @return the height of the area (if y1 == y2 -> height = 1)
*/
static inline cord_t area_get_height(const area_t * area_p)
{
return area_p->y2 - area_p->y1 + 1;
}
/**
* Set the width of an area
* @param area_p pointer to an area
* @param w the new width of the area (w == 1 makes x1 == x2)
*/
void area_set_width(area_t * area_p, cord_t w);
/**
* Set the height of an area
* @param area_p pointer to an area
* @param h the new height of the area (h == 1 makes y1 == y2)
*/
void area_set_height(area_t * area_p, cord_t h);
/**
* Set the position of an area (width and height will be kept)
* @param area_p pointer to an area
* @param x the new x coordinate of the area
* @param y the new y coordinate of the area
*/
void area_set_pos(area_t * area_p, cord_t x, cord_t y);
/**
* Return with area of an area (x * y)
* @param area_p pointer to an area
* @return size of area
*/
uint32_t area_get_size(const area_t * area_p);
/**
* Get the common parts of two areas
* @param res_p pointer to an area, the result will be stored her
* @param a1_p pointer to the first area
* @param a2_p pointer to the second area
* @return false: the two area has NO common parts, res_p is invalid
*/
bool area_union(area_t * res_p, const area_t * a1_p, const area_t * a2_p);
/**
* Join two areas into a third which involves the other two
* @param res_p pointer to an area, the result will be stored here
* @param a1_p pointer to the first area
* @param a2_p pointer to the second area
*/
void area_join(area_t * a_res_p, const area_t * a1_p, const area_t * a2_p);
/**
* Check if a point is on an area
* @param a_p pointer to an area
* @param p_p pointer to a point
* @return false:the point is out of the area
*/
bool area_is_point_on(const area_t * a_p, const point_t * p_p);
/**
* Check if two area has common parts
* @param a1_p pointer to an area.
* @param a2_p pointer to an other area
* @return false: a1_p and a2_p has no common parts
*/
bool area_is_on(const area_t * a1_p, const area_t * a2_p);
/**
* Check if an area is fully on an other
* @param ain_p pointer to an area which could be on aholder_p
* @param aholder pointer to an area which could involve ain_p
* @return
*/
bool area_is_in(const area_t * ain_p, const area_t * aholder_p);
/**********************
* MACROS
**********************/
#endif /*USE_AREA*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif
/**
* @file circ.c
* Circle drawing algorithm (with Bresenham)
* Only a 1/8 circle is calculated. Use CIRC_OCT1_X, CIRC_OCT1_Y macros to get
* the other octets.
*/
/*********************
* INCLUDES
*********************/
#include "misc_conf.h"
#if USE_CIRC != 0
#include "lv_area.h"
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
/**********************
* STATIC PROTOTYPES
**********************/
/**********************
* STATIC VARIABLES
**********************/
/**********************
* MACROS
**********************/
/**********************
* GLOBAL FUNCTIONS
**********************/
/**
* Initialize the circle drawing
* @param c pointer to a point. The coordinates will be calculated here
* @param tmp point to a variable. It will store temporary data
* @param radius radius of the circle
*/
void circ_init(point_t * c, cord_t * tmp, cord_t radius)
{
c->x = radius;
c->y = 0;
*tmp = 1 - radius;
}
/**
* Test the circle drawing is ready or not
* @param c same as in circ_init
* @return true if the circle is not ready yet
*/
bool circ_cont(point_t * c)
{
return c->y <= c->x ? true : false;
}
/**
* Get the next point from the circle
* @param c same as in circ_init. The next point stored here.
* @param tmp same as in circ_init.
*/
void circ_next(point_t * c, cord_t * tmp)
{
c->y++;
if (*tmp <= 0) {
(*tmp) += 2 * c->y + 1; // Change in decision criterion for y -> y+1
} else {
c->x--;
(*tmp) += 2 * (c->y - c->x) + 1; // Change for y -> y+1, x -> x-1
}
}
/**********************
* STATIC FUNCTIONS
**********************/
#endif /*USE_CIRC*/
/**
* @file circ.h
*
*/
#ifndef CIRC_H
#define CIRC_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "misc_conf.h"
#if USE_CIRC != 0
#include "lv_area.h"
#include <stddef.h>
/*********************
* DEFINES
*********************/
#define CIRC_OCT1_X(p) (p.x)
#define CIRC_OCT1_Y(p) (p.y)
#define CIRC_OCT2_X(p) (p.y)
#define CIRC_OCT2_Y(p) (p.x)
#define CIRC_OCT3_X(p) (-p.y)
#define CIRC_OCT3_Y(p) (p.x)
#define CIRC_OCT4_X(p) (-p.x)
#define CIRC_OCT4_Y(p) (p.y)
#define CIRC_OCT5_X(p) (-p.x)
#define CIRC_OCT5_Y(p) (-p.y)
#define CIRC_OCT6_X(p) (-p.y)
#define CIRC_OCT6_Y(p) (-p.x)
#define CIRC_OCT7_X(p) (p.y)
#define CIRC_OCT7_Y(p) (-p.x)
#define CIRC_OCT8_X(p) (p.x)
#define CIRC_OCT8_Y(p) (-p.y)
/**********************
* TYPEDEFS
**********************/
/**********************
* GLOBAL PROTOTYPES
**********************/
/**
* Initialize the circle drawing
* @param c pointer to a point. The coordinates will be calculated here
* @param tmp point to a variable. It will store temporary data
* @param radius radius of the circle
*/
void circ_init(point_t * c, cord_t * tmp, cord_t radius);
/**
* Test the circle drawing is ready or not
* @param c same as in circ_init
* @return true if the circle is not ready yet
*/
bool circ_cont(point_t * c);
/**
* Get the next point from the circle
* @param c same as in circ_init. The next point stored here.
* @param tmp same as in circ_init.
*/
void circ_next(point_t * c, cord_t * tmp);
/**********************
* MACROS
**********************/
#endif /*USE_CIRC*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif
/**
* @file color.c
*
*/
/*********************
* INCLUDES
*********************/
#include "lv_color.h"
#if USE_COLOR != 0
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
/**********************
* STATIC PROTOTYPES
**********************/
/**********************
* STATIC VARIABLES
**********************/
/**********************
* MACROS
**********************/
/**********************
* GLOBAL FUNCTIONS
**********************/
/**********************
* STATIC FUNCTIONS
**********************/
/**
* Convert a HSV color to RGB
* @param h hue [0..359]
* @param s saturation [0..100]
* @param v value [0..100]
* @return the given RGB color in RGB (with COLOR_DEPTH depth)
*/
color_t color_hsv_to_rgb(uint16_t h, uint8_t s, uint8_t v)
{
h = (uint32_t)((uint32_t)h * 255) / 360;
s = (uint16_t)((uint16_t)s * 255) / 100;
v = (uint16_t)((uint16_t)v * 255) / 100;
uint8_t r, g, b;
uint8_t region, remainder, p, q, t;
if (s == 0)
{
r = v;
g = v;
b = v;
return COLOR_MAKE(v, v, v);
}
region = h / 43;
remainder = (h - (region * 43)) * 6;
p = (v * (255 - s)) >> 8;
q = (v * (255 - ((s * remainder) >> 8))) >> 8;
t = (v * (255 - ((s * (255 - remainder)) >> 8))) >> 8;
switch (region)
{
case 0:
r = v; g = t; b = p;
break;
case 1:
r = q; g = v; b = p;
break;
case 2:
r = p; g = v; b = t;
break;
case 3:
r = p; g = q; b = v;
break;
case 4:
r = t; g = p; b = v;
break;
default:
r = v; g = p; b = q;
break;
}
color_t result = COLOR_MAKE(r, g, b);
return result;
}
/**
* Convert an RGB color to HSV
* @param r red
* @param g green
* @param b blue
* @return the given RGB color n HSV
*/
color_hsv_t color_rgb_to_hsv(uint8_t r, uint8_t g, uint8_t b)
{
color_hsv_t hsv;
uint8_t rgbMin, rgbMax;
rgbMin = r < g ? (r < b ? r : b) : (g < b ? g : b);
rgbMax = r > g ? (r > b ? r : b) : (g > b ? g : b);
hsv.v = rgbMax;
if (hsv.v == 0)
{
hsv.h = 0;
hsv.s = 0;
return hsv;
}
hsv.s = 255 * (long)(rgbMax - rgbMin) / hsv.v;
if (hsv.s == 0)
{
hsv.h = 0;
return hsv;
}
if (rgbMax == r)
hsv.h = 0 + 43 * (g - b) / (rgbMax - rgbMin);
else if (rgbMax == g)
hsv.h = 85 + 43 * (b - r) / (rgbMax - rgbMin);
else
hsv.h = 171 + 43 * (r - g) / (rgbMax - rgbMin);
return hsv;
}
#endif /*USE_COLOR*/
/**
* @file color.h
*
*/
#ifndef COLOR_H
#define COLOR_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "misc_conf.h"
#if USE_COLOR != 0
#include <stdint.h>
/*********************
* DEFINES
*********************/
#define COLOR_BLACK COLOR_MAKE(0x00,0x00,0x00)
#define COLOR_WHITE COLOR_MAKE(0xFF,0xFF,0xFF)
#define COLOR_RED COLOR_MAKE(0xFF,0x00,0x00)
#define COLOR_LIME COLOR_MAKE(0x00,0xFF,0x00)
#define COLOR_BLUE COLOR_MAKE(0x00,0x00,0xFF)
#define COLOR_YELLOW COLOR_MAKE(0xFF,0xFF,0x00)
#define COLOR_CYAN COLOR_MAKE(0x00,0xFF,0xFF)
#define COLOR_AQUA COLOR_CYAN
#define COLOR_MAGENTA COLOR_MAKE(0xFF,0x00,0xFF)
#define COLOR_SILVER COLOR_MAKE(0xC0,0xC0,0xC0)
#define COLOR_GRAY COLOR_MAKE(0x80,0x80,0x80)
#define COLOR_MARRON COLOR_MAKE(0x80,0x00,0x00)
#define COLOR_OLIVE COLOR_MAKE(0x80,0x80,0x00)
#define COLOR_GREEN COLOR_MAKE(0x00,0x80,0x00)
#define COLOR_PURPLE COLOR_MAKE(0x80,0x00,0x80)
#define COLOR_TEAL COLOR_MAKE(0x00,0x80,0x80)
#define COLOR_NAVY COLOR_MAKE(0x00,0x00,0x80)
#define COLOR_ORANGE COLOR_MAKE(0xFF,0xA5,0x00)
#define OPA_TRANSP 0
#define OPA_0 0
#define OPA_10 25
#define OPA_20 51
#define OPA_30 76
#define OPA_40 102
#define OPA_50 127
#define OPA_60 153
#define OPA_70 178
#define OPA_80 204
#define OPA_90 229
#define OPA_100 255
#define OPA_COVER 255
/**********************
* TYPEDEFS
**********************/
typedef union
{
uint8_t blue :1;
uint8_t green :1;
uint8_t red :1;
uint8_t full :1;
}color1_t;
typedef union
{
struct
{
uint8_t blue :2;
uint8_t green :3;
uint8_t red :3;
};
uint8_t full;
}color8_t;
typedef union
{
struct
{
uint16_t blue :5;
uint16_t green :6;
uint16_t red :5;
};
uint16_t full;
}color16_t;
typedef union
{
struct
{
uint8_t blue;
uint8_t green;
uint8_t red;
};
uint32_t full;
}color24_t;
#if COLOR_DEPTH == 1
typedef uint8_t color_int_t;
typedef color1_t color_t;
#elif COLOR_DEPTH == 8
typedef uint8_t color_int_t;
typedef color8_t color_t;
#elif COLOR_DEPTH == 16
typedef uint16_t color_int_t;
typedef color16_t color_t;
#elif COLOR_DEPTH == 24
typedef uint32_t color_int_t;
typedef color24_t color_t;
#else
#error "Invalid COLOR_DEPTH in misc_conf.h! Set it to 1, 8, 16 or 24!"
#endif
typedef uint8_t opa_t;
typedef struct
{
uint16_t h;
uint8_t s;
uint8_t v;
} color_hsv_t;
/**********************
* GLOBAL PROTOTYPES
**********************/
/*In color conversations:
* - When converting to bigger color type the LSB weight of 1 LSB is calculated
* E.g. 16 bit Red has 5 bits
* 8 bit Red has 2 bits
* ----------------------
* 8 bit red LSB = (2^5 - 1) / (2^2 - 1) = 31 / 3 = 10
*
* - When calculating to smaller color type simply shift out the LSBs
* E.g. 8 bit Red has 2 bits
* 16 bit Red has 5 bits
* ----------------------
* Shift right with 5 - 3 = 2
*/
static inline uint8_t color_to1(color_t color)
{
#if COLOR_DEPTH == 1
return color.full;
#elif COLOR_DEPTH == 8
if((color.red & 0b100) ||
(color.green & 0b100) ||
(color.blue & 0b10)) {
return 1;
} else {
return 0;
}
#elif COLOR_DEPTH == 16
if((color.red & 0b10000) ||
(color.green & 0b100000) ||
(color.blue & 0b10000)) {
return 1;
} else {
return 0;
}
#elif COLOR_DEPTH == 24
if((color.red & 0x80) ||
(color.green & 0x80) ||
(color.blue & 0x80)) {
return 1;
} else {
return 0;
}
#endif
}
static inline uint8_t color_to8(color_t color)
{
#if COLOR_DEPTH == 1
if(color.full == 0) return 0;
else return 0xFF;
#elif COLOR_DEPTH == 8
return color.full;
#elif COLOR_DEPTH == 16
color8_t ret;
ret.red = color.red >> 2; /* 5 - 3 = 2*/
ret.green = color.green >> 3; /* 6 - 3 = 3*/
ret.blue = color.blue >> 3; /* 5 - 2 = 3*/
return ret.full;
#elif COLOR_DEPTH == 24
color8_t ret;
ret.red = color.red >> 5; /* 8 - 3 = 5*/
ret.green = color.green >> 5; /* 8 - 3 = 5*/
ret.blue = color.blue >> 6; /* 8 - 2 = 6*/
return ret.full;
#endif
}
static inline uint16_t color_to16(color_t color)
{
#if COLOR_DEPTH == 1
if(color.full == 0) return 0;
else return 0xFFFF;
#elif COLOR_DEPTH == 8
color16_t ret;
ret.red = color.red * 4; /*(2^5 - 1)/(2^3 - 1) = 31/7 = 4*/
ret.green = color.green * 9; /*(2^6 - 1)/(2^3 - 1) = 63/7 = 9*/
ret.blue = color.blue * 10; /*(2^5 - 1)/(2^2 - 1) = 31/3 = 10*/
return ret.full;
#elif COLOR_DEPTH == 16
return color.full;
#elif COLOR_DEPTH == 24
color16_t ret;
ret.red = color.red >> 3; /* 8 - 5 = 3*/
ret.green = color.green >> 2; /* 8 - 6 = 2*/
ret.blue = color.blue >> 3; /* 8 - 5 = 3*/
return ret.full;
#endif
}
static inline uint32_t color_to24(color_t color)
{
#if COLOR_DEPTH == 1
if(color.full == 0) return 0;
else return 0xFFFFFF;
#elif COLOR_DEPTH == 8
color24_t ret;
ret.red = color.red * 36; /*(2^8 - 1)/(2^3 - 1) = 255/7 = 36*/
ret.green = color.green * 36; /*(2^8 - 1)/(2^3 - 1) = 255/7 = 36*/
ret.blue = color.blue * 85; /*(2^8 - 1)/(2^2 - 1) = 255/3 = 85*/
return ret.full;
#elif COLOR_DEPTH == 16
color24_t ret;
ret.red = color.red * 8; /*(2^8 - 1)/(2^5 - 1) = 255/31 = 8*/
ret.green = color.green * 4; /*(2^8 - 1)/(2^6 - 1) = 255/63 = 4*/
ret.blue = color.blue * 8; /*(2^8 - 1)/(2^5 - 1) = 255/31 = 8*/
return ret.full;
#elif COLOR_DEPTH == 24
return color.full;
#endif
}
static inline color_t color_mix(color_t c1, color_t c2, uint8_t mix)
{
color_t ret;
ret.red = (uint16_t)((uint16_t) c1.red * mix + (c2.red * (255 - mix))) >> 8;
ret.green = (uint16_t)((uint16_t) c1.green * mix + (c2.green * (255 - mix))) >> 8;
ret.blue = (uint16_t)((uint16_t) c1.blue * mix + (c2.blue * (255 - mix))) >> 8;
return ret;
}
/**
* Get the brightness of a color
* @param color a color
* @return the brightness [0..255]
*/
static inline uint8_t color_brightness(color_t color)
{
color24_t c24;
c24.full = color_to24(color);
uint16_t bright = 3 * c24.red + c24.blue + 4 * c24.green;
return (uint16_t) bright >> 3;
}
#if COLOR_DEPTH == 1
#define COLOR_MAKE(r8, g8, b8) ((color_t){b8 >> 7 | g8 >> 7 | r8 >> 7})
#elif COLOR_DEPTH == 8
#define COLOR_MAKE(r8, g8, b8) ((color_t){{b8 >> 6, g8 >> 5, r8 >> 5}})
#elif COLOR_DEPTH == 16
#define COLOR_MAKE(r8, g8, b8) ((color_t){{b8 >> 3, g8 >> 2, r8 >> 3}})
#elif COLOR_DEPTH == 24
#define COLOR_MAKE(r8, g8, b8) ((color_t){{b8, g8, r8}})
#endif
#define COLOR_HEX(c) COLOR_MAKE(((uint32_t)((uint32_t)c >> 16) & 0xFF), \
((uint32_t)((uint32_t)c >> 8) & 0xFF), \
((uint32_t) c & 0xFF))
/*Usage COLOR_HEX3(0x16C) which means COLOR_HEX(0x1166CC)*/
#define COLOR_HEX3(c) COLOR_MAKE((((c >> 4) & 0xF0) | ((c >> 8) & 0xF)), \
((uint32_t)(c & 0xF0) | ((c & 0xF0) >> 4)), \
((uint32_t)(c & 0xF) | ((c & 0xF) << 4)))
/**
* Convert a HSV color to RGB
* @param h hue [0..359]
* @param s saturation [0..100]
* @param v value [0..100]
* @return the given RGB color in RGB (with COLOR_DEPTH depth)
*/
color_t color_hsv_to_rgb(uint16_t h, uint8_t s, uint8_t v);
/**
* Convert an RGB color to HSV
* @param r red
* @param g green
* @param b blue
* @return the given RGB color n HSV
*/
color_hsv_t color_rgb_to_hsv(uint8_t r, uint8_t g, uint8_t b);
/**********************
* MACROS
**********************/
#endif /*USE_COLOR*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif
/**
* @file font.h
*
*/
#ifndef FONT_H
#define FONT_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "misc_conf.h"
#if USE_FONT != 0
#include <stdint.h>
#include <stddef.h>
#include "lv_fonts/symbol_def.h"
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
struct _font_struct;
typedef struct _font_struct
{
uint32_t first_ascii;
uint32_t last_ascii;
uint8_t height_row;
const uint8_t * bitmap;
const uint32_t * map;
const uint8_t * width;
struct _font_struct * next_page; /*Pointer to a font extension*/
}font_t;
/**********************
* GLOBAL PROTOTYPES
**********************/
/**
* Initialize the built-in fonts
*/
void font_init(void);
/**
* Create a pair from font name and font dsc. get function. After it 'font_get' can be used for this font
* @param child pointer to a font to join to the 'parent'
* @param parent pointer to a font. 'child' will be joined here
*/
void font_add(font_t *child, font_t *parent);
/**
* Return with the bitmap of a font.
* @param font_p pointer to a font
* @param letter a letter
* @return pointer to the bitmap of the letter
*/
const uint8_t * font_get_bitmap(const font_t * font_p, uint32_t letter);
/**
* Get the height of a font
* @param font_p pointer to a font
* @return the height of a font
*/
static inline uint8_t font_get_height(const font_t * font_p)
{
return font_p->height_row;
}
/**
* Get the height of a font. Give the real size on the screen (half size if FONT_ANTIALIAS is enabled)
* @param font_p pointer to a font
* @return the height of a font
*/
static inline uint8_t font_get_height_scale(const font_t * font_p)
{
return font_p->height_row >> FONT_ANTIALIAS;
}
/**
* Get the width of a letter in a font
* @param font_p pointer to a font
* @param letter a letter
* @return the width of a letter
*/
uint8_t font_get_width(const font_t * font_p, uint32_t letter);
/**
* Get the width of a letter in a font )Give the real size on the screen (half size if FONT_ANTIALIAS is enabled)
* @param font_p pointer to a font
* @param letter a letter
* @return the width of a letter
*/
uint8_t font_get_width_scale(const font_t * font_p, uint32_t letter);
/**********************
* MACROS
**********************/
/***********************
* POST INCLUDES
***********************/
/*Add built-in fonts*/
#include "lv_fonts/dejavu_10.h"
#include "lv_fonts/dejavu_10_sup.h"
#include "lv_fonts/dejavu_10_latin_ext_a.h"
#include "lv_fonts/dejavu_10_latin_ext_b.h"
#include "lv_fonts/dejavu_10_cyrillic.h"
#include "lv_fonts/symbol_10_basic.h"
#include "lv_fonts/symbol_10_file.h"
#include "lv_fonts/symbol_10_feedback.h"
#include "lv_fonts/dejavu_20.h"
#include "lv_fonts/dejavu_20_sup.h"
#include "lv_fonts/dejavu_20_latin_ext_a.h"
#include "lv_fonts/dejavu_20_latin_ext_b.h"
#include "lv_fonts/dejavu_20_cyrillic.h"
#include "lv_fonts/symbol_20_basic.h"
#include "lv_fonts/symbol_20_file.h"
#include "lv_fonts/symbol_20_feedback.h"
#include "lv_fonts/dejavu_30.h"
#include "lv_fonts/dejavu_30_sup.h"
#include "lv_fonts/dejavu_30_latin_ext_a.h"
#include "lv_fonts/dejavu_30_latin_ext_b.h"
#include "lv_fonts/dejavu_30_cyrillic.h"
#include "lv_fonts/symbol_30_basic.h"
#include "lv_fonts/symbol_30_file.h"
#include "lv_fonts/symbol_30_feedback.h"
#include "lv_fonts/dejavu_40.h"
#include "lv_fonts/dejavu_40_sup.h"
#include "lv_fonts/dejavu_40_latin_ext_a.h"
#include "lv_fonts/dejavu_40_latin_ext_b.h"
#include "lv_fonts/dejavu_40_cyrillic.h"
#include "lv_fonts/symbol_40_basic.h"
#include "lv_fonts/symbol_40_file.h"
#include "lv_fonts/symbol_40_feedback.h"
#include "lv_fonts/dejavu_60.h"
#include "lv_fonts/dejavu_60_sup.h"
#include "lv_fonts/dejavu_60_latin_ext_a.h"
#include "lv_fonts/dejavu_60_latin_ext_b.h"
#include "lv_fonts/dejavu_60_cyrillic.h"
#include "lv_fonts/symbol_60_basic.h"
#include "lv_fonts/symbol_60_file.h"
#include "lv_fonts/symbol_60_feedback.h"
#include "lv_fonts/dejavu_80.h"
#include "lv_fonts/dejavu_80_sup.h"
#include "lv_fonts/dejavu_80_latin_ext_a.h"
#include "lv_fonts/dejavu_80_latin_ext_b.h"
#include "lv_fonts/dejavu_80_cyrillic.h"
#include "lv_fonts/symbol_80_basic.h"
#include "lv_fonts/symbol_80_file.h"
#include "lv_fonts/symbol_80_feedback.h"
#endif /*USE_FONT*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif
#ifndef DEJAVU_10_H
#define DEJAVU_10_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_10 != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_10;
#endif /*USE_FONT_DEJAVU_10 != 0*/
#endif /*DEJAVU_10_H*/
\ No newline at end of file
#ifndef DEJAVU_10_CYRILLIC_H
#define DEJAVU_10_CYRILLIC_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_10_CYRILLIC != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_10_cyrillic;
#endif /*USE_FONT_DEJAVU_10_CYRILLIC != 0*/
#endif /*DEJAVU_10_CYRILLIC_H*/
\ No newline at end of file
#ifndef DEJAVU_10_LATIN_EXT_A_H
#define DEJAVU_10_LATIN_EXT_A_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_10_LATIN_EXT_A != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_10_latin_ext_a;
#endif /*USE_FONT_DEJAVU_10_LATIN_EXT_A != 0*/
#endif /*DEJAVU_10_LATIN_EXT_A_H*/
\ No newline at end of file
#ifndef DEJAVU_10_LATIN_EXT_B_H
#define DEJAVU_10_LATIN_EXT_B_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_10_LATIN_EXT_B != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_10_latin_ext_b;
#endif /*USE_FONT_DEJAVU_10_LATIN_EXT_B != 0*/
#endif /*DEJAVU_10_LATIN_EXT_B_H*/
\ No newline at end of file
#ifndef DEJAVU_10_SUP_H
#define DEJAVU_10_SUP_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_10_SUP != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_10_sup;
#endif /*USE_FONT_DEJAVU_10_SUP != 0*/
#endif /*DEJAVU_10_SUP_H*/
\ No newline at end of file
#ifndef DEJAVU_20_H
#define DEJAVU_20_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_20 != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_20;
#endif /*USE_FONT_DEJAVU_20 != 0*/
#endif /*DEJAVU_20_H*/
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
#ifndef DEJAVU_20_CYRILLIC_H
#define DEJAVU_20_CYRILLIC_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_20_CYRILLIC != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_20_cyrillic;
#endif /*USE_FONT_DEJAVU_20_CYRILLIC != 0*/
#endif /*DEJAVU_20_CYRILLIC_H*/
\ No newline at end of file
#ifndef DEJAVU_20_LATIN_EXT_A_H
#define DEJAVU_20_LATIN_EXT_A_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_20_LATIN_EXT_A != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_20_latin_ext_a;
#endif /*USE_FONT_DEJAVU_20_LATIN_EXT_A != 0*/
#endif /*DEJAVU_20_LATIN_EXT_A_H*/
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
#ifndef DEJAVU_20_LATIN_EXT_B_H
#define DEJAVU_20_LATIN_EXT_B_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_20_LATIN_EXT_B != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_20_latin_ext_b;
#endif /*USE_FONT_DEJAVU_20_LATIN_EXT_B != 0*/
#endif /*DEJAVU_20_LATIN_EXT_B_H*/
\ No newline at end of file
#ifndef DEJAVU_20_SUP_H
#define DEJAVU_20_SUP_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_20_SUP != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_20_sup;
#endif /*USE_FONT_DEJAVU_20_SUP != 0*/
#endif /*DEJAVU_20_SUP_H*/
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
#ifndef DEJAVU_30_H
#define DEJAVU_30_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_30 != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_30;
#endif /*USE_FONT_DEJAVU_30 != 0*/
#endif /*DEJAVU_30_H*/
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
#ifndef DEJAVU_30_CYRILLIC_H
#define DEJAVU_30_CYRILLIC_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_30_CYRILLIC != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_30_cyrillic;
#endif /*USE_FONT_DEJAVU_30_CYRILLIC != 0*/
#endif /*DEJAVU_30_CYRILLIC_H*/
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
#ifndef DEJAVU_30_LATIN_EXT_A_H
#define DEJAVU_30_LATIN_EXT_A_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_30_LATIN_EXT_A != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_30_latin_ext_a;
#endif /*USE_FONT_DEJAVU_30_LATIN_EXT_A != 0*/
#endif /*DEJAVU_30_LATIN_EXT_A_H*/
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
#ifndef DEJAVU_30_LATIN_EXT_B_H
#define DEJAVU_30_LATIN_EXT_B_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_30_LATIN_EXT_B != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_30_latin_ext_b;
#endif /*USE_FONT_DEJAVU_30_LATIN_EXT_B != 0*/
#endif /*DEJAVU_30_LATIN_EXT_B_H*/
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
#ifndef DEJAVU_30_SUP_H
#define DEJAVU_30_SUP_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_30_SUP != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_30_sup;
#endif /*USE_FONT_DEJAVU_30_SUP != 0*/
#endif /*DEJAVU_30_SUP_H*/
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
#ifndef DEJAVU_40_H
#define DEJAVU_40_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_40 != 0
#include <stdint.h>
#include "../lv_font.h"
extern font_t font_dejavu_40;
#endif /*USE_FONT_DEJAVU_40 != 0*/
#endif /*DEJAVU_40_H*/
This source diff could not be displayed because it is too large. You can view the blob instead.
#ifndef DEJAVU_40_CYRILLIC_H
#define DEJAVU_40_CYRILLIC_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_40_CYRILLIC != 0
#include <stdint.h>
#include "../lv_font.h"
extern font_t font_dejavu_40_cyrillic;
#endif /*USE_FONT_DEJAVU_40_CYRILLIC != 0*/
#endif /*DEJAVU_40_CYRILLIC_H*/
This source diff could not be displayed because it is too large. You can view the blob instead.
#ifndef DEJAVU_40_LATIN_EXT_A_H
#define DEJAVU_40_LATIN_EXT_A_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_40_LATIN_EXT_A != 0
#include <stdint.h>
#include "../lv_font.h"
extern font_t font_dejavu_40_latin_ext_a;
#endif /*USE_FONT_DEJAVU_40_LATIN_EXT_A != 0*/
#endif /*DEJAVU_40_LATIN_EXT_A_H*/
This source diff could not be displayed because it is too large. You can view the blob instead.
#ifndef DEJAVU_40_LATIN_EXT_B_H
#define DEJAVU_40_LATIN_EXT_B_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_40_LATIN_EXT_B != 0
#include <stdint.h>
#include "../lv_font.h"
extern font_t font_dejavu_40_latin_ext_b;
#endif /*USE_FONT_DEJAVU_40_LATIN_EXT_B != 0*/
#endif /*DEJAVU_40_LATIN_EXT_B_H*/
This source diff could not be displayed because it is too large. You can view the blob instead.
#ifndef DEJAVU_40_SUP_H
#define DEJAVU_40_SUP_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_40_SUP != 0
#include <stdint.h>
#include "../lv_font.h"
extern font_t font_dejavu_40_sup;
#endif /*USE_FONT_DEJAVU_40_SUP != 0*/
#endif /*DEJAVU_40_SUP_H*/
This source diff could not be displayed because it is too large. You can view the blob instead.
#ifndef DEJAVU_60_H
#define DEJAVU_60_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_60 != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_60;
#endif /*USE_FONT_DEJAVU_60 != 0*/
#endif /*DEJAVU_60_H*/
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
#ifndef DEJAVU_60_CYRILLIC_H
#define DEJAVU_60_CYRILLIC_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_60_CYRILLIC != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_60_cyrillic;
#endif /*USE_FONT_DEJAVU_60_CYRILLIC != 0*/
#endif /*DEJAVU_60_CYRILLIC_H*/
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
#ifndef DEJAVU_60_LATIN_EXT_A_H
#define DEJAVU_60_LATIN_EXT_A_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_60_LATIN_EXT_A != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_60_latin_ext_a;
#endif /*USE_FONT_DEJAVU_60_LATIN_EXT_A != 0*/
#endif /*DEJAVU_60_LATIN_EXT_A_H*/
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
#ifndef DEJAVU_60_LATIN_EXT_B_H
#define DEJAVU_60_LATIN_EXT_B_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_60_LATIN_EXT_B != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_60_latin_ext_b;
#endif /*USE_FONT_DEJAVU_60_LATIN_EXT_B != 0*/
#endif /*DEJAVU_60_LATIN_EXT_B_H*/
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
#ifndef DEJAVU_60_SUP_H
#define DEJAVU_60_SUP_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_60_SUP != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_60_sup;
#endif /*USE_FONT_DEJAVU_60_SUP != 0*/
#endif /*DEJAVU_60_SUP_H*/
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
#ifndef DEJAVU_80_H
#define DEJAVU_80_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_80 != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_80;
#endif /*USE_FONT_DEJAVU_80 != 0*/
#endif /*DEJAVU_80_H*/
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
#ifndef DEJAVU_80_CYRILLIC_H
#define DEJAVU_80_CYRILLIC_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_80_CYRILLIC != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_80_cyrillic;
#endif /*USE_FONT_DEJAVU_80_CYRILLIC != 0*/
#endif /*DEJAVU_80_CYRILLIC_H*/
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
#ifndef DEJAVU_80_LATIN_EXT_A_H
#define DEJAVU_80_LATIN_EXT_A_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_80_LATIN_EXT_A != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_80_latin_ext_a;
#endif /*USE_FONT_DEJAVU_80_LATIN_EXT_A != 0*/
#endif /*DEJAVU_80_LATIN_EXT_A_H*/
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
#ifndef DEJAVU_80_LATIN_EXT_B_H
#define DEJAVU_80_LATIN_EXT_B_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_80_LATIN_EXT_B != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_80_latin_ext_b;
#endif /*USE_FONT_DEJAVU_80_LATIN_EXT_B != 0*/
#endif /*DEJAVU_80_LATIN_EXT_B_H*/
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
#ifndef DEJAVU_80_SUP_H
#define DEJAVU_80_SUP_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_DEJAVU_80_SUP != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_dejavu_80_sup;
#endif /*USE_FONT_DEJAVU_80_SUP != 0*/
#endif /*DEJAVU_80_SUP_H*/
\ No newline at end of file
#include "misc_conf.h"
#if USE_FONT_SYMBOL_10_BASIC != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
/*Store the image of the letters (glyph) */
static const uint8_t symbol_10_basic_bitmap[] =
{
// ASCII: 57344, char width: 10
0x00, 0x00, // ----------......
0xef, 0xc0, // OOO-OOOOOO......
0xff, 0xc0, // OOOOOOOOOO......
0x00, 0x00, // ----------......
0xef, 0xc0, // OOO-OOOOOO......
0xef, 0xc0, // OOO-OOOOOO......
0x00, 0x00, // ----------......
0xff, 0xc0, // OOOOOOOOOO......
0xef, 0xc0, // OOO-OOOOOO......
0x00, 0x00, // ----------......
// ASCII: 57345, char width: 10
0x00, 0x00, // ----------......
0x00, 0x00, // ----------......
0x00, 0x00, // ----------......
0x01, 0x80, // -------OO-......
0x03, 0x80, // ------OOO-......
0x67, 0x00, // -OO--OOO--......
0x7e, 0x00, // -OOOOOO---......
0x3c, 0x00, // --OOOO----......
0x18, 0x00, // ---OO-----......
0x00, 0x00, // ----------......
// ASCII: 57346, char width: 8
0x00, // --------
0x00, // --------
0x00, // --------
0xee, // OOO-OOO-
0x7c, // -OOOOO--
0x3c, // --OOOO--
0x7c, // -OOOOO--
0xfe, // OOOOOOO-
0x44, // -O---O--
0x00, // --------
// ASCII: 57347, char width: 9
0x08, 0x00, // ----O----.......
0x08, 0x00, // ----O----.......
0x6a, 0x00, // -OO-O-O--.......
0x6b, 0x00, // -OO-O-OO-.......
0xc9, 0x00, // OO--O--O-.......
0x81, 0x80, // O------OO.......
0xc1, 0x80, // OO-----OO.......
0xc3, 0x00, // OO----OO-.......
0x7f, 0x00, // -OOOOOOO-.......
0x3c, 0x00, // --OOOO---.......
// ASCII: 57348, char width: 9
0x00, 0x00, // ---------.......
0x08, 0x00, // ----O----.......
0x7f, 0x00, // -OOOOOOO-.......
0x7f, 0x00, // -OOOOOOO-.......
0x67, 0x00, // -OO--OOO-.......
0xe3, 0x80, // OOO---OOO.......
0x67, 0x00, // -OO--OOO-.......
0x7f, 0x00, // -OOOOOOO-.......
0x7f, 0x00, // -OOOOOOO-.......
0x08, 0x00, // ----O----.......
// ASCII: 57349, char width: 9
0x00, 0x00, // ---------.......
0x00, 0x00, // ---------.......
0x0f, 0x00, // ----OOOO-.......
0x3f, 0x00, // --OOOOOO-.......
0x7f, 0x00, // -OOOOOOO-.......
0xff, 0x80, // OOOOOOOOO.......
0x7f, 0x00, // -OOOOOOO-.......
0x77, 0x00, // -OOO-OOO-.......
0x37, 0x00, // --OO-OOO-.......
0x00, 0x00, // ---------.......
// ASCII: 57350, char width: 9
0x00, 0x00, // ---------.......
0x18, 0x00, // ---OO----.......
0x7f, 0x00, // -OOOOOOO-.......
0x47, 0x00, // -O---OOO-.......
0xc7, 0x00, // OO---OOO-.......
0x00, 0x00, // ---------.......
0xe1, 0x00, // OOO----O-.......
0xe3, 0x00, // OOO---OO-.......
0xfe, 0x00, // OOOOOOO--.......
0x3c, 0x00, // --OOOO---.......
// ASCII: 57351, char width: 7
0x00, // -------.
0x04, // -----O-.
0x0c, // ----OO-.
0x1c, // ---OOO-.
0x38, // --OOO--.
0x70, // -OOO---.
0x38, // --OOO--.
0x1c, // ---OOO-.
0x0c, // ----OO-.
0x04, // -----O-.
// ASCII: 57352, char width: 7
0x00, // -------.
0x40, // -O-----.
0x60, // -OO----.
0x30, // --OO---.
0x18, // ---OO--.
0x1c, // ---OOO-.
0x18, // ---OO--.
0x30, // --OO---.
0x60, // -OO----.
0x40, // -O-----.
// ASCII: 57353, char width: 8
0x00, // --------
0x18, // ---OO---
0x18, // ---OO---
0x18, // ---OO---
0xff, // OOOOOOOO
0xff, // OOOOOOOO
0x18, // ---OO---
0x18, // ---OO---
0x18, // ---OO---
0x00, // --------
// ASCII: 57354, char width: 8
0x00, // --------
0x00, // --------
0x00, // --------
0x00, // --------
0xff, // OOOOOOOO
0xff, // OOOOOOOO
0x00, // --------
0x00, // --------
0x00, // --------
0x00, // --------
// ASCII: 57355, char width: 10
0x00, 0x00, // ----------......
0x00, 0x00, // ----------......
0x00, 0x00, // ----------......
0x08, 0x00, // ----O-----......
0x1c, 0x00, // ---OOO----......
0x3e, 0x00, // --OOOOO---......
0x77, 0x00, // -OOO-OOO--......
0xe3, 0x80, // OOO---OOO-......
0x41, 0x00, // -O-----O--......
0x00, 0x00, // ----------......
// ASCII: 57356, char width: 10
0x00, 0x00, // ----------......
0x00, 0x00, // ----------......
0x00, 0x00, // ----------......
0x00, 0x00, // ----------......
0xe3, 0x80, // OOO---OOO-......
0x77, 0x00, // -OOO-OOO--......
0x3e, 0x00, // --OOOOO---......
0x1c, 0x00, // ---OOO----......
0x08, 0x00, // ----O-----......
0x00, 0x00, // ----------......
// ASCII: 57357, char width: 11
0x00, 0x00, // -----------.....
0x00, 0x00, // -----------.....
0xff, 0xc0, // OOOOOOOOOO-.....
0x80, 0x20, // O---------O.....
0x80, 0x20, // O---------O.....
0xa0, 0xa0, // O-O-----O-O.....
0x80, 0x20, // O---------O.....
0x8e, 0x20, // O---OOO---O.....
0xff, 0xe0, // OOOOOOOOOOO.....
0x00, 0x00, // -----------.....
};
/*Store the start index of the glyphs in the bitmap array*/
static const uint32_t symbol_10_basic_map[] =
{
0, 20, 40, 50, 70, 90, 110, 130,
140, 150, 160, 170, 190, 210,
};
/*Store the width (column count) of each glyph*/
static const uint8_t symbol_10_basic_width[] =
{
10, 10, 8, 9, 9, 9, 9, 7,
7, 8, 8, 10, 10, 11,
};
font_t font_symbol_10_basic =
{
#if TXT_UTF8 == 0
192, /*First letter's unicode */
207, /*Last letter's unicode */
#else
57344, /*First letter's unicode */
57358, /*Last letter's unicode */
#endif
10, /*Letters height (rows) */
symbol_10_basic_bitmap, /*Glyph's bitmap*/
symbol_10_basic_map, /*Glyph start indexes in the bitmap*/
symbol_10_basic_width, /*Glyph widths (columns)*/
};
#endif /*SYMBOL_10_BASIC_H*/
\ No newline at end of file
#ifndef SYMBOL_10_BASIC_H
#define SYMBOL_10_BASIC_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_SYMBOL_10_BASIC != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_symbol_10_basic;
#endif /*USE_FONT_SYMBOL_10_BASIC != 0*/
#endif /*SYMBOL_10_BASIC_H*/
\ No newline at end of file
#include "misc_conf.h"
#if USE_FONT_SYMBOL_10_FEEDBACK != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
/*Store the image of the letters (glyph) */
static const uint8_t symbol_10_feedback_bitmap[] =
{
// ASCII: 57408, char width: 4
0x00, // ----....
0x00, // ----....
0x10, // ---O....
0x30, // --OO....
0xf0, // OOOO....
0xf0, // OOOO....
0xf0, // OOOO....
0x30, // --OO....
0x00, // ----....
0x00, // ----....
// ASCII: 57409, char width: 6
0x00, // ------..
0x00, // ------..
0x10, // ---O--..
0x30, // --OO--..
0xf4, // OOOO-O..
0xf2, // OOOO--O.
0xf0, // OOOO--..
0x30, // --OO--..
0x00, // ------..
0x00, // ------..
// ASCII: 57410, char width: 9
0x00, 0x00, // ---------.......
0x00, 0x00, // ---------.......
0x11, 0x00, // ---O---O-.......
0x33, 0x80, // --OO--OOO.......
0xf5, 0x80, // OOOO-O-OO.......
0xf3, 0x80, // OOOO--OOO.......
0xf5, 0x80, // OOOO-O-OO.......
0x32, 0x80, // --OO--O-O.......
0x01, 0x00, // -------O-.......
0x00, 0x00, // ---------.......
// ASCII: 57411, char width: 10
0x0c, 0x00, // ----OO----......
0x0c, 0x00, // ----OO----......
0x1e, 0x00, // ---OOOO---......
0x12, 0x00, // ---O--O---......
0x33, 0x00, // --OO--OO--......
0x33, 0x00, // --OO--OO--......
0x7f, 0x80, // -OOOOOOOO-......
0x73, 0x80, // -OOO--OOO-......
0xff, 0xc0, // OOOOOOOOOO......
0xff, 0xc0, // OOOOOOOOOO......
// ASCII: 57412, char width: 8
0x00, // --------
0x40, // -O------
0xe0, // OOO-----
0xe0, // OOO-----
0xc0, // OO------
0x60, // -OO-----
0x32, // --OO--O-
0x1f, // ---OOOOO
0x0e, // ----OOO-
0x00, // --------
// ASCII: 57413, char width: 5
0x00, // -----...
0x60, // -OO--...
0x60, // -OO--...
0x60, // -OO--...
0xf8, // OOOOO...
0xf0, // OOOO-...
0x30, // --OO-...
0x20, // --O--...
0x20, // --O--...
0x00, // -----...
// ASCII: 57414, char width: 10
0x00, 0x00, // ----------......
0x1c, 0x00, // ---OOO----......
0x3e, 0x00, // --OOOOO---......
0x3e, 0x00, // --OOOOO---......
0x3f, 0x00, // --OOOOOO--......
0x3f, 0x00, // --OOOOOO--......
0x7f, 0x00, // -OOOOOOO--......
0x7f, 0x00, // -OOOOOOO--......
0xff, 0x80, // OOOOOOOOO-......
0x1c, 0x00, // ---OOO----......
// ASCII: 57415, char width: 8
0x00, // --------
0x00, // --------
0x03, // ------OO
0x0e, // ----OOO-
0x3e, // --OOOOO-
0xfc, // OOOOOO--
0x1c, // ---OOO--
0x08, // ----O---
0x08, // ----O---
0x00, // --------
// ASCII: 57416, char width: 11
0x00, 0x00, // -----------.....
0x06, 0x00, // -----OO----.....
0x3f, 0xc0, // --OOOOOOOO-.....
0xe0, 0xe0, // OOO-----OOO.....
0x3f, 0x80, // --OOOOOOO--.....
0x31, 0x80, // --OO---OO--.....
0x1f, 0x00, // ---OOOOO---.....
0x00, 0x00, // -----------.....
0x04, 0x00, // -----O-----.....
0x00, 0x00, // -----------.....
// ASCII: 57417, char width: 13
0x00, 0x00, // -------------...
0x00, 0x00, // -------------...
0x80, 0x10, // O----------O-...
0xff, 0xf0, // OOOOOOOOOOOO-...
0xff, 0xe8, // OOOOOOOOOOO-O...
0xff, 0xe8, // OOOOOOOOOOO-O...
0xff, 0xe8, // OOOOOOOOOOO-O...
0x80, 0x10, // O----------O-...
0xff, 0xf0, // OOOOOOOOOOOO-...
0x00, 0x00, // -------------...
// ASCII: 57418, char width: 13
0x00, 0x00, // -------------...
0x00, 0x00, // -------------...
0x80, 0x10, // O----------O-...
0xff, 0x10, // OOOOOOOO---O-...
0xff, 0x08, // OOOOOOOO----O...
0xff, 0x08, // OOOOOOOO----O...
0xff, 0x08, // OOOOOOOO----O...
0x80, 0x10, // O----------O-...
0xff, 0xf0, // OOOOOOOOOOOO-...
0x00, 0x00, // -------------...
// ASCII: 57419, char width: 13
0x00, 0x00, // -------------...
0x00, 0x00, // -------------...
0x80, 0x10, // O----------O-...
0xfc, 0x10, // OOOOOO-----O-...
0xfc, 0x08, // OOOOOO------O...
0xfc, 0x08, // OOOOOO------O...
0xfc, 0x08, // OOOOOO------O...
0x80, 0x10, // O----------O-...
0xff, 0xf0, // OOOOOOOOOOOO-...
0x00, 0x00, // -------------...
// ASCII: 57420, char width: 13
0x00, 0x00, // -------------...
0x00, 0x00, // -------------...
0x80, 0x10, // O----------O-...
0xf0, 0x10, // OOOO-------O-...
0xf0, 0x08, // OOOO--------O...
0xf0, 0x08, // OOOO--------O...
0xf0, 0x08, // OOOO--------O...
0x80, 0x10, // O----------O-...
0xff, 0xf0, // OOOOOOOOOOOO-...
0x00, 0x00, // -------------...
// ASCII: 57421, char width: 13
0x00, 0x00, // -------------...
0x00, 0x00, // -------------...
0x80, 0x10, // O----------O-...
0x80, 0x10, // O----------O-...
0x80, 0x08, // O-----------O...
0x80, 0x08, // O-----------O...
0x80, 0x08, // O-----------O...
0x80, 0x10, // O----------O-...
0xff, 0xf0, // OOOOOOOOOOOO-...
0x00, 0x00, // -------------...
// ASCII: 57422, char width: 9
0x3c, 0x00, // --OOOO---.......
0x76, 0x00, // -OOO-OO--.......
0x73, 0x00, // -OOO--OO-.......
0x53, 0x00, // -O-O--OO-.......
0x67, 0x00, // -OO--OOO-.......
0x67, 0x00, // -OO--OOO-.......
0x53, 0x00, // -O-O--OO-.......
0x73, 0x00, // -OOO--OO-.......
0x76, 0x00, // -OOO-OO--.......
0x3c, 0x00, // --OOOO---.......
};
/*Store the start index of the glyphs in the bitmap array*/
static const uint32_t symbol_10_feedback_map[] =
{
0, 10, 20, 40, 60, 70, 80, 100,
110, 130, 150, 170, 190, 210, 230,
};
/*Store the width (column count) of each glyph*/
static const uint8_t symbol_10_feedback_width[] =
{
4, 6, 9, 10, 8, 5, 10, 8,
11, 13, 13, 13, 13, 13, 9,
};
font_t font_symbol_10_feedback =
{
#if TXT_UTF8 == 0
208, /*First letter's unicode */
223, /*Last letter's unicode */
#else
57408, /*First letter's unicode */
57423, /*Last letter's unicode */
#endif
10, /*Letters height (rows) */
symbol_10_feedback_bitmap, /*Glyph's bitmap*/
symbol_10_feedback_map, /*Glyph start indexes in the bitmap*/
symbol_10_feedback_width, /*Glyph widths (columns)*/
};
#endif /*SYMBOL_10_FEEDBACK_H*/
\ No newline at end of file
#ifndef SYMBOL_10_FEEDBACK_H
#define SYMBOL_10_FEEDBACK_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_SYMBOL_10_FEEDBACK != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_symbol_10_feedback;
#endif /*USE_FONT_SYMBOL_10_FEEDBACK != 0*/
#endif /*SYMBOL_10_FEEDBACK_H*/
\ No newline at end of file
#include "misc_conf.h"
#if USE_FONT_SYMBOL_10_FILE != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
/*Store the image of the letters (glyph) */
static const uint8_t symbol_10_file_bitmap[] =
{
// ASCII: 57376, char width: 9
0x00, 0x00, // ---------.......
0x03, 0x80, // ------OOO.......
0x1f, 0x80, // ---OOOOOO.......
0x1f, 0x80, // ---OOOOOO.......
0x1c, 0x80, // ---OOO--O.......
0x10, 0x80, // ---O----O.......
0x10, 0x80, // ---O----O.......
0x17, 0x80, // ---O-OOOO.......
0xf3, 0x00, // OOOO--OO-.......
0xf0, 0x00, // OOOO-----.......
// ASCII: 57377, char width: 11
0x00, 0x00, // -----------.....
0xff, 0xe0, // OOOOOOOOOOO.....
0xa0, 0xa0, // O-O-----O-O.....
0xe0, 0xe0, // OOO-----OOO.....
0xa0, 0xa0, // O-O-----O-O.....
0xff, 0xe0, // OOOOOOOOOOO.....
0xa0, 0xa0, // O-O-----O-O.....
0xe0, 0xe0, // OOO-----OOO.....
0xa0, 0xa0, // O-O-----O-O.....
0xa0, 0xa0, // O-O-----O-O.....
// ASCII: 57378, char width: 8
0x00, // --------
0x3c, // --OOOO--
0xff, // OOOOOOOO
0x02, // ------O-
0x02, // ------O-
0x76, // -OOO-OO-
0x76, // -OOO-OO-
0x66, // -OO--OO-
0x02, // ------O-
0x7e, // -OOOOOO-
// ASCII: 57379, char width: 9
0x0c, 0x00, // ----OO---.......
0x0c, 0x00, // ----OO---.......
0x0c, 0x00, // ----OO---.......
0x3e, 0x00, // --OOOOO--.......
0x1e, 0x00, // ---OOOO--.......
0x0c, 0x00, // ----OO---.......
0xf3, 0x80, // OOOO--OOO.......
0xff, 0x80, // OOOOOOOOO.......
0xff, 0x80, // OOOOOOOOO.......
0x00, 0x00, // ---------.......
// ASCII: 57380, char width: 9
0x00, 0x00, // ---------.......
0x00, 0x00, // ---------.......
0x7e, 0x00, // -OOOOOO--.......
0x43, 0x00, // -O----OO-.......
0xc1, 0x00, // OO-----O-.......
0x81, 0x80, // O------OO.......
0xe7, 0x80, // OOO--OOOO.......
0xff, 0x80, // OOOOOOOOO.......
0xff, 0x80, // OOOOOOOOO.......
0x00, 0x00, // ---------.......
// ASCII: 57381, char width: 11
0x00, 0x00, // -----------.....
0xff, 0xe0, // OOOOOOOOOOO.....
0x80, 0x20, // O---------O.....
0xa0, 0x20, // O-O-------O.....
0xa3, 0x20, // O-O---OO--O.....
0x87, 0xa0, // O----OOOO-O.....
0xbf, 0xa0, // O-OOOOOOO-O.....
0xbf, 0xa0, // O-OOOOOOO-O.....
0xbf, 0xa0, // O-OOOOOOO-O.....
0xff, 0xc0, // OOOOOOOOOO-.....
// ASCII: 57382, char width: 9
0x00, 0x00, // ---------.......
0x02, 0x00, // ------O--.......
0x07, 0x00, // -----OOO-.......
0x0f, 0x00, // ----OOOO-.......
0x1e, 0x00, // ---OOOO--.......
0x3e, 0x00, // --OOOOO--.......
0x7c, 0x00, // -OOOOO---.......
0xf8, 0x00, // OOOOO----.......
0xb0, 0x00, // O-OO-----.......
0xe0, 0x00, // OOO------.......
// ASCII: 57383, char width: 6
0x00, // ------..
0x84, // O----O..
0x8c, // O---OO..
0x9c, // O--OOO..
0xfc, // OOOOOO..
0xfc, // OOOOOO..
0xbc, // O-OOOO..
0x9c, // O--OOO..
0x8c, // O---OO..
0x00, // ------..
// ASCII: 57384, char width: 8
0x00, // --------
0x80, // O-------
0xe0, // OOO-----
0xf8, // OOOOO---
0xfc, // OOOOOO--
0xff, // OOOOOOOO
0xfc, // OOOOOO--
0xf0, // OOOO----
0xe0, // OOO-----
0x80, // O-------
// ASCII: 57385, char width: 9
0x00, 0x00, // ---------.......
0xf7, 0x80, // OOOO-OOOO.......
0xf7, 0x80, // OOOO-OOOO.......
0xf7, 0x80, // OOOO-OOOO.......
0xf7, 0x80, // OOOO-OOOO.......
0xf7, 0x80, // OOOO-OOOO.......
0xf7, 0x80, // OOOO-OOOO.......
0xf7, 0x80, // OOOO-OOOO.......
0xf7, 0x80, // OOOO-OOOO.......
0xe7, 0x00, // OOO--OOO-.......
// ASCII: 57386, char width: 9
0x00, 0x00, // ---------.......
0xff, 0x80, // OOOOOOOOO.......
0xff, 0x80, // OOOOOOOOO.......
0xff, 0x80, // OOOOOOOOO.......
0xff, 0x80, // OOOOOOOOO.......
0xff, 0x80, // OOOOOOOOO.......
0xff, 0x80, // OOOOOOOOO.......
0xff, 0x80, // OOOOOOOOO.......
0xff, 0x80, // OOOOOOOOO.......
0xff, 0x00, // OOOOOOOO-.......
// ASCII: 57387, char width: 6
0x00, // ------..
0x08, // ----O-..
0x88, // O---O-..
0xc8, // OO--O-..
0xf8, // OOOOO-..
0xf8, // OOOOO-..
0xe8, // OOO-O-..
0xc8, // OO--O-..
0x88, // O---O-..
0x00, // ------..
// ASCII: 57388, char width: 9
0x00, 0x00, // ---------.......
0x00, 0x00, // ---------.......
0x18, 0x00, // ---OO----.......
0x3c, 0x00, // --OOOO---.......
0x7e, 0x00, // -OOOOOO--.......
0xff, 0x00, // OOOOOOOO-.......
0x00, 0x00, // ---------.......
0xff, 0x80, // OOOOOOOOO.......
0xff, 0x80, // OOOOOOOOO.......
0x00, 0x00, // ---------.......
// ASCII: 57389, char width: 10
0x00, 0x00, // ----------......
0x00, 0x80, // --------O-......
0xe7, 0xc0, // OOO--OOOOO......
0x3c, 0x80, // --OOOO--O-......
0x18, 0x00, // ---OO-----......
0x18, 0x00, // ---OO-----......
0x3c, 0x80, // --OOOO--O-......
0xe7, 0xc0, // OOO--OOOOO......
0x00, 0x80, // --------O-......
0x00, 0x00, // ----------......
// ASCII: 57390, char width: 11
0x00, 0x00, // -----------.....
0x00, 0x00, // -----------.....
0x00, 0x00, // -----------.....
0x6f, 0x80, // -OO-OOOOO--.....
0xf0, 0x80, // OOOO----O--.....
0x70, 0x80, // -OOO----O--.....
0x21, 0xe0, // --O----OOOO.....
0x31, 0xc0, // --OO---OOO-.....
0x3e, 0x80, // --OOOOO-O--.....
0x00, 0x00, // -----------.....
// ASCII: 57391, char width: 9
0x00, 0x00, // ---------.......
0xf0, 0x00, // OOOO-----.......
0xf8, 0x00, // OOOOO----.......
0xff, 0x80, // OOOOOOOOO.......
0xff, 0x80, // OOOOOOOOO.......
0xff, 0x80, // OOOOOOOOO.......
0xff, 0x80, // OOOOOOOOO.......
0xff, 0x80, // OOOOOOOOO.......
0xff, 0x80, // OOOOOOOOO.......
0x00, 0x00, // ---------.......
// ASCII: 57392, char width: 9
0x00, 0x00, // ---------.......
0x0c, 0x00, // ----OO---.......
0x1e, 0x00, // ---OOOO--.......
0x3f, 0x00, // --OOOOOO-.......
0x0c, 0x00, // ----OO---.......
0x0c, 0x00, // ----OO---.......
0x0c, 0x00, // ----OO---.......
0xf3, 0x80, // OOOO--OOO.......
0xff, 0x80, // OOOOOOOOO.......
0xff, 0x80, // OOOOOOOOO.......
// ASCII: 57393, char width: 10
0x00, 0x00, // ----------......
0x00, 0x00, // ----------......
0xe0, 0x00, // OOO-------......
0x90, 0x00, // O--O------......
0xf0, 0x00, // OOOO------......
0x08, 0x00, // ----O-----......
0x7c, 0x00, // -OOOOO----......
0x92, 0x00, // O--O--O---......
0x90, 0x40, // O--O-----O......
0xe0, 0x00, // OOO-------......
// ASCII: 57394, char width: 10
0x1e, 0x00, // ---OOOO---......
0x32, 0x00, // --OO--O---......
0x53, 0x80, // -O-O--OOO-......
0xf3, 0x40, // OOOO--OO-O......
0x84, 0x40, // O----O---O......
0x8e, 0x40, // O---OOO--O......
0x80, 0x40, // O--------O......
0xf8, 0x40, // OOOOO----O......
0x00, 0x40, // ---------O......
0x00, 0x40, // ---------O......
// ASCII: 57395, char width: 9
0x00, 0x00, // ---------.......
0xfe, 0x00, // OOOOOOO--.......
0xf5, 0x00, // OOOO-O-O-.......
0xf4, 0x80, // OOOO-O--O.......
0xbc, 0x80, // O-OOOO--O.......
0x80, 0x80, // O-------O.......
0xbe, 0x80, // O-OOOOO-O.......
0xc0, 0x80, // OO------O.......
0xc0, 0x80, // OO------O.......
0xff, 0x80, // OOOOOOOOO.......
// ASCII: 57396, char width: 9
0x78, 0x00, // -OOOO----.......
0xfa, 0x00, // OOOOO-O--.......
0xfb, 0x00, // OOOOO-OO-.......
0xf8, 0x00, // OOOOO----.......
0xff, 0x80, // OOOOOOOOO.......
0xff, 0x80, // OOOOOOOOO.......
0xff, 0x80, // OOOOOOOOO.......
0xff, 0x80, // OOOOOOOOO.......
0xff, 0x80, // OOOOOOOOO.......
0xff, 0x80, // OOOOOOOOO.......
};
/*Store the start index of the glyphs in the bitmap array*/
static const uint32_t symbol_10_file_map[] =
{
0, 20, 40, 50, 70, 90, 110, 130,
140, 150, 170, 190, 200, 220, 240, 260,
280, 300, 320, 340, 360,
};
/*Store the width (column count) of each glyph*/
static const uint8_t symbol_10_file_width[] =
{
9, 11, 8, 9, 9, 11, 9, 6,
8, 9, 9, 6, 9, 10, 11, 9,
9, 10, 10, 9, 9,
};
font_t font_symbol_10_file =
{
#if TXT_UTF8 == 0
224, /*First letter's unicode */
255, /*Last letter's unicode */
#else
57376, /*First letter's unicode */
57397, /*Last letter's unicode */
#endif
10, /*Letters height (rows) */
symbol_10_file_bitmap, /*Glyph's bitmap*/
symbol_10_file_map, /*Glyph start indexes in the bitmap*/
symbol_10_file_width, /*Glyph widths (columns)*/
};
#endif /*SYMBOL_10_FILE_H*/
\ No newline at end of file
#ifndef SYMBOL_10_FILE_H
#define SYMBOL_10_FILE_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_SYMBOL_10_FILE != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_symbol_10_file;
#endif /*USE_FONT_SYMBOL_10_FILE != 0*/
#endif /*SYMBOL_10_FILE_H*/
\ No newline at end of file
#ifndef SYMBOL_20_BASIC_H
#define SYMBOL_20_BASIC_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_SYMBOL_20_BASIC != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_symbol_20_basic;
#endif /*USE_FONT_SYMBOL_20_BASIC != 0*/
#endif /*SYMBOL_20_BASIC_H*/
\ No newline at end of file
#ifndef SYMBOL_20_FEEDBACK_H
#define SYMBOL_20_FEEDBACK_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_SYMBOL_20_FEEDBACK != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_symbol_20_feedback;
#endif /*USE_FONT_SYMBOL_20_FEEDBACK != 0*/
#endif /*SYMBOL_20_FEEDBACK_H*/
\ No newline at end of file
#ifndef SYMBOL_20_FILE_H
#define SYMBOL_20_FILE_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_SYMBOL_20_FILE != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_symbol_20_file;
#endif /*USE_FONT_SYMBOL_20_FILE != 0*/
#endif /*SYMBOL_20_FILE_H*/
\ No newline at end of file
#ifndef SYMBOL_30_BASIC_H
#define SYMBOL_30_BASIC_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_SYMBOL_30_BASIC != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_symbol_30_basic;
#endif /*USE_FONT_SYMBOL_30_BASIC != 0*/
#endif /*SYMBOL_30_BASIC_H*/
\ No newline at end of file
#ifndef SYMBOL_30_FEEDBACK_H
#define SYMBOL_30_FEEDBACK_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_SYMBOL_30_FEEDBACK != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_symbol_30_feedback;
#endif /*USE_FONT_SYMBOL_30_FEEDBACK != 0*/
#endif /*SYMBOL_30_FEEDBACK_H*/
\ No newline at end of file
#ifndef SYMBOL_30_FILE_H
#define SYMBOL_30_FILE_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_SYMBOL_30_FILE != 0
#include <stdint.h>
#include "../lv_misc/lv_font.h"
extern font_t font_symbol_30_file;
#endif /*USE_FONT_SYMBOL_30_FILE != 0*/
#endif /*SYMBOL_30_FILE_H*/
\ No newline at end of file
#ifndef SYMBOL_40_BASIC_H
#define SYMBOL_40_BASIC_H
/*Use UTF-8 encoding in the IDE*/
#include "misc_conf.h"
#if USE_FONT_SYMBOL_40_BASIC != 0
#include <stdint.h>
#include "../lv_font.h"
extern font_t font_symbol_40_basic;
#endif /*USE_FONT_SYMBOL_40_BASIC != 0*/
#endif /*SYMBOL_40_BASIC_H*/
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment