From f15b53eea4b7054826f79836e207751e86ba1cec Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sat, 4 May 2019 00:57:44 +0200 Subject: Reorganised folder structure --- character.c | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 character.c (limited to 'character.c') diff --git a/character.c b/character.c deleted file mode 100644 index 658f0be..0000000 --- a/character.c +++ /dev/null @@ -1,10 +0,0 @@ -#include "character.h" - -const char character_luminance_map [] = {' ', ' ', '.', ',', '`', '-', '~', '"', '*', ':', ';', '<', '!', '/', '?', '%', '&', '=', '$', '#'}; -//const char map[] = {' ', '`', '.', ',', ':', ';', '\"', '+', '#', '@'}; - -char calc_char(uint8_t _c , uint8_t _min, uint8_t _max) -{ - float c = (float)(_c) / (_max - _min); - return character_luminance_map [(int)((sizeof(character_luminance_map)-1) * (c))]; -} -- cgit v1.2.3