From 28baa52191099820ed2d1d5a33a0d29e50d82033 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Tue, 12 May 2020 00:25:42 +0200 Subject: Added custom character palette --- src/character.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/character.h') diff --git a/src/character.h b/src/character.h index 7e17cd7..be6af41 100644 --- a/src/character.h +++ b/src/character.h @@ -2,11 +2,13 @@ #define _CHARACTER_H_ #include +#include //Both maps produce very different results -const char character_luminance_map [] ; +const char *default_character_map; -//Select Char based on 1B brightness Value -char calc_char(uint8_t _c, uint8_t _min, uint8_t _max); +//Select Char based on 1B brightness Value. +//if _custom_map == NULL default map is used +char calc_char(uint8_t _c, uint8_t _min, uint8_t _max, char *_custom_map); #endif //_CHARACTER_H_ -- cgit v1.2.3