zum Betrachten der Daten über Serialport.
#include <UTFT.h>
#include <tinyFAT.h>
#include <UTFT_tinyFAT.h>
// Declare which fonts we will be using
// SmallFont.c
// Font size : 8x12 pixels
extern uint8_t SmallFont[];
// BigFont.c
// Font size : 16x16 pixels
const uint8_t BigFont[3044] PROGMEM={
0x10,0x10,0x20,0x5F,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // <space>
0x00,0x00,0x00,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x00,0x00,0x03,0x00,0x03,0x00,0x00,0x00,0x00,0x00, // !
0x00,0x00,0x00,0x00,0x03,0x60,0x03,0x60,0x03,0x60,0x03,0x60,0x03,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // "
0x00,0x00,0x00,0x00,0x06,0x60,0x06,0x60,0x06,0x60,0x1F,0xF0,0x1F,0xF0,0x0C,0xC0,0x0C,0xC0,0x3F,0xE0,0x3F,0xE0,0x19,0x80,0x19,0x80,0x19,0x80,0x00,0x00,0x00,0x00, // #
0x00,0x00,0x00,0x00,0x01,0x00,0x07,0xC0,0x0D,0x60,0x0D,0x00,0x0D,0x00,0x0F,0x00,0x07,0xC0,0x01,0xE0,0x01,0x60,0x19,0x60,0x0D,0x60,0x07,0xC0,0x01,0x00,0x00,0x00, // $
0x00,0x00,0x00,0x00,0x3C,0x18,0x66,0x30,0x66,0x60,0x66,0x60,0x66,0xC0,0x3D,0x80,0x01,0xBC,0x03,0x66,0x06,0x66,0x06,0x66,0x0C,0x66,0x18,0x3C,0x00,0x00,0x00,0x00, // %
0x00,0x00,0x00,0x00,0x07,0x80,0x0F,0xC0,0x0C,0xC0,0x0C,0xC0,0x07,0x80,0x07,0x98,0x0D,0x98,0x18,0xD8,0x18,0xF0,0x1C,0x70,0x0F,0xF8,0x07,0x98,0x00,0x00,0x00,0x00, // &
0x00,0x00,0x00,0x00,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // '
0x00,0x00,0x00,0x00,0x00,0xC0,0x01,0x80,0x01,0x80,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x01,0x80,0x01,0x80,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00, // (
0x00,0x00,0x00,0x00,0x0C,0x00,0x06,0x00,0x06,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x06,0x00,0x06,0x00,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // )
0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x1C,0xCE,0x1F,0xFE,0x03,0xF0,0x01,0xE0,0x03,0x30,0x07,0x38,0x02,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // *
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x07,0xF8,0x07,0xF8,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0x00,0x00,0x00, // +
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x01,0x80,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00, // ,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0xC0,0x03,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // -
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00, // .
0x00,0x00,0x00,0x10,0x00,0x20,0x00,0x20,0x00,0x40,0x00,0x40,0x00,0x80,0x00,0x80,0x01,0x00,0x01,0x00,0x02,0x00,0x02,0x00,0x04,0x00,0x04,0x00,0x08,0x00,0x08,0x00, // /
0x00,0x00,0x00,0x00,0x03,0xC0,0x07,0xE0,0x06,0x60,0x0C,0x30,0x0C,0x30,0x0C,0x30,0x0C,0x30,0x0C,0x30,0x0C,0x30,0x06,0x60,0x07,0xE0,0x03,0xC0,0x00,0x00,0x00,0x00, // 0
0x00,0x00,0x00,0x00,0x01,0x80,0x03,0x80,0x07,0x80,0x0D,0x80,0x09,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x0F,0xF0,0x0F,0xF0,0x00,0x00,0x00,0x00, // 1
0x00,0x00,0x00,0x00,0x03,0xC0,0x07,0xE0,0x0E,0x70,0x0C,0x30,0x00,0x30,0x00,0x70,0x00,0xE0,0x01,0xC0,0x03,0x80,0x07,0x00,0x0F,0xF0,0x0F,0xF0,0x00,0x00,0x00,0x00, // 2
0x00,0x00,0x00,0x00,0x03,0xC0,0x07,0xE0,0x0E,0x30,0x0C,0x30,0x00,0x30,0x01,0xE0,0x01,0xE0,0x00,0x30,0x0C,0x30,0x0E,0x30,0x07,0xE0,0x03,0xC0,0x00,0x00,0x00,0x00, // 3
0x00,0x00,0x00,0x00,0x00,0xE0,0x00,0xE0,0x01,0xE0,0x03,0x60,0x03,0x60,0x06,0x60,0x0C,0x60,0x0F,0xF8,0x0F,0xF8,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x00,0x00,0x00, // 4
0x00,0x00,0x00,0x00,0x07,0xF0,0x07,0xF0,0x06,0x00,0x06,0x00,0x06,0xE0,0x07,0xF0,0x07,0x38,0x00,0x18,0x00,0x18,0x06,0x38,0x07,0xF0,0x01,0xE0,0x00,0x00,0x00,0x00, // 5
0x00,0x00,0x00,0x00,0x03,0xE0,0x07,0xF0,0x06,0x30,0x0C,0x00,0x0D,0xC0,0x0F,0xE0,0x0E,0x70,0x0C,0x30,0x0C,0x30,0x06,0x70,0x07,0xE0,0x03,0xC0,0x00,0x00,0x00,0x00, // 6
0x00,0x00,0x00,0x00,0x07,0xF8,0x07,0xF8,0x00,0x30,0x00,0x30,0x00,0x60,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x00,0x00,0x00,0x00, // 7
0x00,0x00,0x00,0x00,0x01,0xE0,0x03,0xF0,0x06,0x18,0x06,0x18,0x06,0x18,0x03,0xF0,0x03,0xF0,0x06,0x18,0x06,0x18,0x06,0x18,0x03,0xF0,0x01,0xE0,0x00,0x00,0x00,0x00, // 8
0x00,0x00,0x00,0x00,0x03,0xC0,0x07,0xE0,0x0E,0x60,0x0C,0x30,0x0C,0x30,0x0E,0x70,0x07,0xF0,0x03,0xB0,0x00,0x30,0x0C,0x60,0x07,0xE0,0x03,0x80,0x00,0x00,0x00,0x00, // 9
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // :
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x01,0x80,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00, // ;
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x70,0x01,0xE0,0x07,0x80,0x0E,0x00,0x07,0x80,0x01,0xE0,0x00,0x70,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00, // <
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0xF0,0x0F,0xF0,0x00,0x00,0x0F,0xF0,0x0F,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // =
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x07,0x00,0x03,0xC0,0x00,0xF0,0x00,0x38,0x00,0xF0,0x03,0xC0,0x07,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // >
0x00,0x00,0x00,0x00,0x03,0xC0,0x07,0xE0,0x0C,0x70,0x0C,0x30,0x00,0x30,0x00,0x60,0x00,0xC0,0x01,0x80,0x01,0x80,0x00,0x00,0x01,0x80,0x01,0x80,0x00,0x00,0x00,0x00, // ?
0x00,0x00,0x00,0x00,0x00,0x00,0x03,0xE0,0x04,0x30,0x08,0x18,0x13,0xC8,0x14,0x48,0x14,0x48,0x14,0xD0,0x13,0x20,0x08,0x00,0x04,0x10,0x03,0xE0,0x00,0x00,0x00,0x00, // @
0x00,0x00,0x00,0x00,0x03,0x80,0x03,0x80,0x07,0xC0,0x06,0xC0,0x06,0xC0,0x0E,0xE0,0x0C,0x60,0x0F,0xE0,0x1C,0x70,0x1C,0x70,0x18,0x30,0x38,0x38,0x00,0x00,0x00,0x00, // A
0x00,0x00,0x00,0x00,0x0F,0xC0,0x0F,0xE0,0x0C,0x30,0x0C,0x30,0x0C,0x30,0x0F,0xE0,0x0F,0xE0,0x0C,0x30,0x0C,0x30,0x0C,0x30,0x0F,0xE0,0x0F,0xC0,0x00,0x00,0x00,0x00, // B
0x00,0x00,0x00,0x00,0x03,0xC0,0x0F,0xE0,0x0C,0x30,0x1C,0x30,0x18,0x00,0x18,0x00,0x18,0x00,0x18,0x00,0x1C,0x30,0x0C,0x30,0x0F,0xE0,0x03,0xC0,0x00,0x00,0x00,0x00, // C
0x00,0x00,0x00,0x00,0x0F,0xC0,0x0F,0xE0,0x0C,0x70,0x0C,0x38,0x0C,0x18,0x0C,0x18,0x0C,0x18,0x0C,0x18,0x0C,0x38,0x0C,0x70,0x0F,0xE0,0x0F,0xC0,0x00,0x00,0x00,0x00, // D
0x00,0x00,0x00,0x00,0x0F,0xE0,0x0F,0xE0,0x0C,0x00,0x0C,0x00,0x0C,0x00,0x0F,0xC0,0x0F,0xC0,0x0C,0x00,0x0C,0x00,0x0C,0x00,0x0F,0xE0,0x0F,0xE0,0x00,0x00,0x00,0x00, // E
0x00,0x00,0x00,0x00,0x0F,0xE0,0x0F,0xE0,0x0C,0x00,0x0C,0x00,0x0C,0x00,0x0F,0xC0,0x0F,0xC0,0x0C,0x00,0x0C,0x00,0x0C,0x00,0x0C,0x00,0x0C,0x00,0x00,0x00,0x00,0x00, // F
0x00,0x00,0x00,0x00,0x07,0x80,0x1F,0xC0,0x18,0xE0,0x30,0x60,0x30,0x00,0x30,0x00,0x31,0xE0,0x31,0xE0,0x30,0x60,0x18,0xE0,0x1F,0xE0,0x07,0x20,0x00,0x00,0x00,0x00, // G
0x00,0x00,0x00,0x00,0x0C,0x30,0x0C,0x30,0x0C,0x30,0x0C,0x30,0x0C,0x30,0x0F,0xF0,0x0F,0xF0,0x0C,0x30,0x0C,0x30,0x0C,0x30,0x0C,0x30,0x0C,0x30,0x00,0x00,0x00,0x00, // H
0x00,0x00,0x00,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x00,0x00,0x00,0x00, // I
0x00,0x00,0x00,0x00,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x07,0x80,0x07,0x00,0x00,0x00,0x00,0x00, // J
0x00,0x00,0x00,0x00,0x0C,0x30,0x0C,0x60,0x0C,0xC0,0x0C,0xC0,0x0D,0x80,0x0D,0x80,0x0F,0xC0,0x0E,0xC0,0x0C,0x60,0x0C,0x60,0x0C,0x30,0x0C,0x30,0x00,0x00,0x00,0x00, // K
0x00,0x00,0x00,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x07,0xE0,0x07,0xE0,0x00,0x00,0x00,0x00, // L
0x00,0x00,0x00,0x00,0x38,0x38,0x38,0x38,0x3C,0x78,0x3C,0x78,0x34,0x58,0x36,0xD8,0x36,0xD8,0x32,0x98,0x33,0x98,0x33,0x98,0x31,0x18,0x31,0x18,0x00,0x00,0x00,0x00, // M
0x00,0x00,0x00,0x00,0x0C,0x30,0x0E,0x30,0x0E,0x30,0x0F,0x30,0x0F,0x30,0x0D,0xB0,0x0D,0xB0,0x0C,0xF0,0x0C,0xF0,0x0C,0x70,0x0C,0x70,0x0C,0x30,0x00,0x00,0x00,0x00, // N
0x00,0x00,0x00,0x00,0x01,0xE0,0x03,0xF0,0x06,0x18,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x06,0x18,0x03,0xF0,0x01,0xE0,0x00,0x00,0x00,0x00, // O
0x00,0x00,0x00,0x00,0x07,0xE0,0x07,0xF0,0x06,0x18,0x06,0x18,0x06,0x18,0x07,0xF0,0x07,0xE0,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x00,0x00,0x00,0x00, // P
0x00,0x00,0x00,0x00,0x01,0xE0,0x07,0xF8,0x06,0x18,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x06,0x18,0x07,0xF0,0x01,0xE0,0x00,0x3C,0x00,0x1C, // Q
0x00,0x00,0x00,0x00,0x0F,0xE0,0x0F,0xF0,0x0C,0x18,0x0C,0x18,0x0C,0x18,0x0F,0xF0,0x0F,0xE0,0x0C,0x60,0x0C,0x60,0x0C,0x30,0x0C,0x30,0x0C,0x18,0x00,0x00,0x00,0x00, // R
0x00,0x00,0x00,0x00,0x03,0xC0,0x07,0xE0,0x0E,0x30,0x0C,0x00,0x0F,0x00,0x07,0xC0,0x01,0xE0,0x00,0x70,0x18,0x30,0x1C,0x70,0x0F,0xE0,0x07,0xC0,0x00,0x00,0x00,0x00, // S
0x00,0x00,0x00,0x00,0x0F,0xF0,0x0F,0xF0,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x00,0x00,0x00,0x00, // T
0x00,0x00,0x00,0x00,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x07,0xC0,0x03,0x80,0x00,0x00,0x00,0x00, // U
0x00,0x00,0x00,0x00,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x06,0xC0,0x06,0xC0,0x06,0xC0,0x06,0xC0,0x06,0xC0,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x00,0x00,0x00,0x00, // V
0x00,0x00,0x00,0x00,0x31,0xC6,0x31,0xC6,0x31,0xC6,0x31,0xC6,0x1B,0x6C,0x1B,0x6C,0x1B,0x6C,0x1B,0x6C,0x0E,0x38,0x0E,0x38,0x0E,0x38,0x0E,0x38,0x00,0x00,0x00,0x00, // W
0x00,0x00,0x00,0x00,0x18,0x30,0x0C,0x60,0x0C,0x60,0x06,0xC0,0x03,0x80,0x03,0x80,0x03,0x80,0x06,0xC0,0x06,0xC0,0x0C,0x60,0x0C,0x60,0x18,0x30,0x00,0x00,0x00,0x00, // X
0x00,0x00,0x00,0x00,0x0C,0x30,0x0C,0x30,0x06,0x60,0x06,0x60,0x03,0xC0,0x03,0xC0,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x00,0x00,0x00,0x00, // Y
0x00,0x00,0x00,0x00,0x0F,0xF0,0x0F,0xF0,0x00,0x60,0x00,0x60,0x00,0xC0,0x01,0x80,0x01,0x80,0x03,0x00,0x06,0x00,0x06,0x00,0x0F,0xF0,0x0F,0xF0,0x00,0x00,0x00,0x00, // Z
0x00,0x00,0x03,0x80,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x80,0x00,0x00, // [
0x00,0x00,0x04,0x00,0x04,0x00,0x02,0x00,0x02,0x00,0x01,0x00,0x01,0x00,0x00,0x80,0x00,0x80,0x00,0x40,0x00,0x40,0x00,0x20,0x00,0x20,0x00,0x10,0x00,0x10,0x00,0x08, // <backslash>
0x00,0x00,0x03,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x03,0x80,0x00,0x00, // ]
0x00,0x00,0x01,0xC0,0x01,0xC0,0x03,0x60,0x03,0x60,0x06,0x30,0x0C,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // ^
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x00,0x00, // _
0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x48,0x00,0x48,0x00,0x48,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // `
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0xC0,0x0F,0xE0,0x0C,0x60,0x01,0xE0,0x07,0xE0,0x0C,0x60,0x0C,0x60,0x0F,0xE0,0x07,0x60,0x00,0x00,0x00,0x00,0x00,0x00, // a
0x00,0x00,0x0C,0x00,0x0C,0x00,0x0C,0x00,0x0D,0x80,0x0F,0xC0,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0F,0xC0,0x0B,0x80,0x00,0x00,0x00,0x00,0x00,0x00, // b
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xE0,0x03,0xF0,0x07,0x30,0x06,0x00,0x06,0x00,0x06,0x00,0x07,0x30,0x03,0xF0,0x01,0xE0,0x00,0x00,0x00,0x00,0x00,0x00, // c
0x00,0x00,0x00,0x60,0x00,0x60,0x00,0x60,0x03,0x60,0x07,0xE0,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x07,0xE0,0x03,0x60,0x00,0x00,0x00,0x00,0x00,0x00, // d
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x80,0x07,0xC0,0x0C,0x60,0x0F,0xE0,0x0F,0xE0,0x0C,0x00,0x0C,0x60,0x07,0xC0,0x03,0x80,0x00,0x00,0x00,0x00,0x00,0x00, // e
0x00,0x00,0x03,0x80,0x07,0x80,0x06,0x00,0x0F,0x80,0x0F,0x80,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // f
0x00,0x00,0x00,0x00,0x00,0xE0,0x0F,0x80,0x1F,0xC0,0x18,0xC0,0x18,0xC0,0x1F,0xC0,0x0F,0x80,0x18,0x00,0x1F,0xC0,0x1F,0xE0,0x30,0x60,0x3F,0xC0,0x1F,0x80,0x00,0x00, // g
0x00,0x00,0x0C,0x00,0x0C,0x00,0x0C,0x00,0x0D,0xC0,0x0F,0xE0,0x0E,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x00,0x00,0x00,0x00,0x00,0x00, // h
0x00,0x00,0x00,0x00,0x01,0x80,0x01,0x80,0x00,0x00,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00, // i
0x00,0x00,0x00,0x00,0x01,0x80,0x01,0x80,0x00,0x00,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x07,0x00, // j
0x00,0x00,0x0C,0x00,0x0C,0x00,0x0C,0x00,0x0C,0x60,0x0C,0xC0,0x0C,0xC0,0x0D,0x80,0x0F,0x80,0x0F,0x80,0x0C,0xC0,0x0C,0xC0,0x0C,0x60,0x00,0x00,0x00,0x00,0x00,0x00, // k
0x00,0x00,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00, // l
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x37,0x38,0x3F,0xFC,0x39,0xCC,0x31,0x8C,0x31,0x8C,0x31,0x8C,0x31,0x8C,0x31,0x8C,0x31,0x8C,0x00,0x00,0x00,0x00,0x00,0x00, // m
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0D,0xC0,0x0F,0xE0,0x0E,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x00,0x00,0x00,0x00,0x00,0x00, // n
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x80,0x07,0xC0,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x07,0xC0,0x03,0x80,0x00,0x00,0x00,0x00,0x00,0x00, // o
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0D,0x80,0x0F,0xC0,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0F,0xC0,0x0D,0x80,0x0C,0x00,0x0C,0x00,0x0C,0x00, // p
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0xA0,0x07,0xE0,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x07,0xE0,0x03,0x60,0x00,0x60,0x00,0x60,0x00,0x60, // q
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x60,0x03,0xE0,0x03,0x80,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // r
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0xC0,0x07,0xE0,0x06,0x60,0x07,0x00,0x03,0xC0,0x00,0xE0,0x06,0x60,0x07,0xE0,0x03,0xC0,0x00,0x00,0x00,0x00,0x00,0x00, // s
0x00,0x00,0x00,0x00,0x01,0x80,0x01,0x80,0x03,0xE0,0x03,0xE0,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0xE0,0x00,0xE0,0x00,0x00,0x00,0x00,0x00,0x00, // t
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0x60,0x0C,0xE0,0x0F,0xE0,0x07,0x60,0x00,0x00,0x00,0x00,0x00,0x00, // u
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0C,0x60,0x0C,0x60,0x06,0xC0,0x06,0xC0,0x06,0xC0,0x03,0x80,0x03,0x80,0x03,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // v
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x31,0x8C,0x31,0x8C,0x19,0x98,0x1B,0xD8,0x1B,0xD8,0x1A,0x58,0x0E,0x70,0x0E,0x70,0x0C,0x30,0x00,0x00,0x00,0x00,0x00,0x00, // w
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0C,0x60,0x06,0xC0,0x06,0xC0,0x03,0x80,0x03,0x80,0x03,0x80,0x06,0xC0,0x06,0xC0,0x0C,0x60,0x00,0x00,0x00,0x00,0x00,0x00, // x
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0C,0x60,0x0C,0x60,0x06,0xC0,0x06,0xC0,0x06,0xC0,0x06,0xC0,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x00,0x07,0x00,0x06,0x00, // y
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0xE0,0x03,0xE0,0x00,0x60,0x00,0xC0,0x00,0x80,0x01,0x80,0x03,0x00,0x03,0xE0,0x03,0xE0,0x00,0x00,0x00,0x00,0x00,0x00, // z
0x00,0x00,0x00,0xE0,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x02,0x00,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x00,0xE0,0x00,0x00, // {
0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x00,0x00, // |
0x00,0x00,0x03,0x80,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0x20,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x03,0x80,0x00,0x00, // }
0x00,0x00,0x00,0x00,0x03,0x98,0x07,0xF8,0x06,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // ~
};
// myfonts.c
// Font size : 24x24 pixels
const uint8_t SevenSegNumFont[724] PROGMEM={
0x18,0x18,0x30,0x0A,
0x00,0x3C,0x00,0x00,0xFF,0x00,0x01,0xFF,0x80,0x03,0xC3,0xC0,0x03,0x81,0xE0,0x07,0x00,0xE0,0x0F,0x00,0x70,0x0E,0x00,0x70,0x0E,0x00,0x70,0x0E,0x00,0x70,0x0E,0x00,0xF0,0x0F,0x00,0xF0,0x07,0x81,0xE0,0x03,0xC3,0xC0,0x01,0xC3,0x80,0x00,0xE7,0x00,0x00,0xFF,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0xFF,0x00,0x00,0xFF,0x00,0x00,0x7E,0x00,0x00,0x00,0x00, // 0
0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x18,0x00,0x00,0x3C,0x00,0x00,0x3C,0x00,0x00,0x76,0x00,0x00,0x66,0x00,0x00,0xE7,0x00,0x00,0xC3,0x00,0x01,0xC3,0x80,0x01,0x83,0x80,0x03,0x83,0xC0,0x03,0x03,0xC0,0x07,0x07,0xE0,0x07,0x0F,0xE0,0x07,0x9F,0xE0,0x07,0xFF,0xE0,0x07,0xFF,0xE0,0x03,0xFF,0xE0,0x03,0xFF,0xC0,0x01,0xFF,0x80,0x00,0xFF,0x00,0x00,0x3E,0x00,0x00,0x00,0x00, // 1
0x00,0x00,0x3C,0x00,0x00,0xFE,0x00,0x07,0xC6,0x00,0x0F,0xE6,0x00,0x1F,0x76,0x00,0x3F,0x3E,0x00,0x7F,0x9E,0x00,0xFF,0xCE,0x00,0x7F,0xEE,0x00,0x3F,0xFF,0x00,0x1F,0xFF,0x00,0x0F,0xFE,0x02,0x07,0xFC,0x72,0x07,0xF8,0xD7,0xFF,0xF0,0xCB,0xFF,0xE0,0xAA,0x00,0x40,0xB0,0x00,0x00,0xB2,0x00,0x00,0xA2,0x00,0x00,0x12,0x00,0x00,0x56,0x00,0x00,0x54,0x00,0x00,0x40,0x00,0x00, // 2
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0xFC,0xC0,0x03,0xF9,0xC0,0x07,0x83,0x80,0x0E,0x03,0xB0,0x1C,0x07,0x38,0x38,0x0F,0x38,0x38,0x0E,0x18,0x30,0x1E,0x1C,0x70,0x3E,0x1C,0x70,0x7C,0x0E,0x70,0x6C,0x0E,0x70,0x78,0x0E,0x30,0x30,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // 3
0x00,0x18,0x00,0x00,0x7E,0x00,0x00,0xE7,0x00,0x01,0xC3,0x80,0x01,0x81,0x80,0x01,0x81,0x80,0x01,0x91,0x80,0x01,0x99,0x80,0x01,0x99,0x80,0x01,0x99,0x80,0x01,0x99,0x80,0x01,0x99,0x80,0x01,0x99,0x80,0x01,0x99,0x80,0x01,0x99,0x80,0x03,0x18,0xC0,0x03,0x3C,0xC0,0x06,0x3C,0x60,0x06,0x3C,0x60,0x06,0x18,0x60,0x03,0x00,0xC0,0x03,0x81,0xC0,0x01,0xE7,0x80,0x00,0x7E,0x00, // 4
0x00,0x3C,0x00,0x00,0x7E,0x00,0x00,0xC3,0x00,0x00,0xC3,0x00,0x00,0xC3,0x00,0x00,0x66,0x00,0x00,0x3C,0x00,0x00,0x18,0x00,0x38,0x00,0x1C,0x7C,0x00,0x3E,0xC6,0x38,0x63,0xC3,0x2C,0xC3,0xC3,0x34,0xC3,0xC6,0x1C,0x63,0x7C,0x00,0x3E,0x38,0x00,0x1C,0x00,0x18,0x00,0x00,0x3C,0x00,0x00,0x66,0x00,0x00,0xC3,0x00,0x00,0xC3,0x00,0x00,0xC3,0x00,0x00,0x7E,0x00,0x00,0x3C,0x00, // 5
0x07,0xC0,0x00,0x06,0xE0,0x00,0x03,0x61,0xE0,0x03,0xE3,0xF0,0x01,0xE3,0x70,0x00,0x37,0xC0,0x00,0x1D,0x80,0x00,0x18,0x00,0x00,0x3C,0x00,0x00,0xFF,0x80,0x1F,0xFF,0xF8,0x1F,0xFF,0xF8,0x1F,0xFF,0xF8,0x1F,0xFF,0xF8,0x1F,0xFF,0xF8,0x1F,0xFF,0xF8,0x0F,0xFF,0xF0,0x0F,0xFF,0xF0,0x0F,0xFF,0xF0,0x0F,0xFF,0xF0,0x0F,0xFF,0xF0,0x0F,0xFF,0xF0,0x07,0xFF,0xE0,0x07,0xFF,0xE0, // 6
0x07,0xC0,0x00,0x06,0xE0,0x00,0x03,0x61,0xE0,0x03,0xE3,0xF0,0x01,0xE3,0x70,0x00,0x37,0xC0,0x00,0x1D,0x80,0x00,0x18,0x00,0x00,0x3C,0x00,0x00,0xFF,0x80,0x1F,0xFF,0xF8,0x10,0x00,0x08,0x10,0x00,0x08,0x10,0x00,0x08,0x10,0x00,0x08,0x1F,0xFF,0xF8,0x0F,0xFF,0xF0,0x0F,0xFF,0xF0,0x0F,0xFF,0xF0,0x0F,0xFF,0xF0,0x0F,0xFF,0xF0,0x0F,0xFF,0xF0,0x07,0xFF,0xE0,0x07,0xFF,0xE0, // 7
0x07,0xC0,0x00,0x06,0xE0,0x00,0x03,0x61,0xE0,0x03,0xE3,0xF0,0x01,0xE3,0x70,0x00,0x37,0xC0,0x00,0x1D,0x80,0x00,0x18,0x00,0x00,0x3C,0x00,0x00,0xFF,0x80,0x1F,0xFF,0xF8,0x10,0x00,0x08,0x10,0x00,0x08,0x10,0x00,0x08,0x10,0x00,0x08,0x1E,0x00,0x78,0x08,0x00,0x10,0x08,0x00,0x10,0x08,0x00,0x10,0x0F,0xFF,0xF0,0x0F,0xFF,0xF0,0x0F,0xFF,0xF0,0x07,0xFF,0xE0,0x07,0xFF,0xE0, // 8
0x07,0xC0,0x00,0x06,0xE0,0x00,0x03,0x61,0xE0,0x03,0xE3,0xF0,0x01,0xE3,0x70,0x00,0x37,0xC0,0x00,0x1D,0x80,0x00,0x18,0x00,0x00,0x3C,0x00,0x00,0xFF,0x80,0x1F,0xFF,0xF8,0x10,0x00,0x08,0x10,0x00,0x08,0x10,0x00,0x08,0x10,0x00,0x08,0x1E,0x00,0x78,0x08,0x00,0x10,0x08,0x00,0x10,0x08,0x00,0x10,0x08,0x00,0x10,0x08,0x00,0x10,0x0C,0x00,0x30,0x04,0x00,0x20,0x07,0xFF,0xE0, // 9
};
UTFT myGLCD(ITDB32S, 38, 39, 40, 41);
UTFT_tinyFAT myFiles(&myGLCD);
int picsize_x, picsize_y;
boolean display_rendertime=false; // Set this to true if you want the rendertime to be displayed after a picture is loaded
boolean display_filename=false; // Set this to false to disable showing of filename
String odebraneDane = "";
void setup() {
Serial.begin(9600);
Serial1.begin(9600);
// LCD vorbereiten
myGLCD.InitLCD(LANDSCAPE);
myGLCD.clrScr();
myGLCD.setColor(225, 225, 225);
myGLCD.setFont(SmallFont);
file.initFAT();
picsize_x=myGLCD.getDisplayXSize();
picsize_y=myGLCD.getDisplayYSize();
myFiles.loadBitmap(0, 0, picsize_x, picsize_y, "boot.raw");
delay(2000);
myGLCD.clrScr();
myFiles.loadBitmap(0, 0, picsize_x, picsize_y, "main.raw");
}
void loop() {
String pieces[13];
int counter = 0;
int lastIndex=0;
String humidity, temperature;
String soilValue, dystans;
String oswietlenie, chlodzenie, pompa;
String dayofweek, datum, godzina;
String aktualizacja;
String temperature1, temperature2, temperature3;
if(Serial1.available() > 0) {
odebraneDane = Serial1.readStringUntil('\n');
Serial.println(odebraneDane);
for (int i = 0; i < odebraneDane.length(); i++) {
// Loop through each character and check if it's a comma
if (odebraneDane.substring(i, i+1) == "|") {
// Grab the piece from the last index up to the current position and store it
pieces[counter] = odebraneDane.substring(lastIndex, i);
// Update the last position and add 1, so it starts from the next character
lastIndex = i + 1;
// Increase the position in the array that we store into
counter++;
}
// If we're at the end of the string (no more commas to stop us)
if (i == odebraneDane.length() - 1) {
// Grab the last part of the string from the lastIndex to the end
pieces[counter] = odebraneDane.substring(lastIndex, i);
}
}
// Clear out string and counters to get ready for the next incoming string
odebraneDane = "";
counter = 0;
lastIndex = 0;
/*
Sendet ein String:
humidity|temperature|soilValue|dystans|oswietlenie|chlodzenie|pompa|dzien|akt_data|aktualizacja|temperature1|temperature2|temperature3|
45.25|20.20|5|15|0|0|1|Donnerstag|2017-09-21 18:20:30|60|21.10|22.20|23.30|
*/
humidity = pieces[0];
temperature = pieces[1];
soilValue = pieces[2];
dystans = pieces[3];
oswietlenie = pieces[4];
chlodzenie = pieces[5];
pompa = pieces[6];
dayofweek = pieces[7];
datum = pieces[8];
aktualizacja = pieces[9];
temperature1 = pieces[10];
temperature2 = pieces[11];
temperature3 = pieces[12];
// Wilgotnosc otoczenia
myGLCD.setColor(VGA_BLUE);
myGLCD.setFont(SevenSegNumFont);
myGLCD.print("1", 0, 28);
myGLCD.setColor(VGA_WHITE);
myGLCD.setFont(BigFont);
myGLCD.print(humidity, 24, 4);
myGLCD.print("%", 104, 4);
// Temperatura otoczenia
myGLCD.setColor(VGA_RED);
myGLCD.setFont(SevenSegNumFont);
myGLCD.print("4", 0, 0);
myGLCD.setColor(VGA_WHITE);
myGLCD.setFont(BigFont);
myGLCD.print(temperature, 24, 32);
myGLCD.print("'C", 104, 32);
// Wilgotnosc gleby 1
// 6 - Gleba 100 %
// 7 - Gleba 2/3 %
// 8 - Gleba 1/3 %
// 9 - Gleba 0 %
myGLCD.setColor(VGA_LIME);
myGLCD.setFont(SevenSegNumFont);
if (soilValue.toInt() > 85) { myGLCD.print("6", 0, 52); }
else if (soilValue.toInt() > 50) { myGLCD.print("7", 0, 52); }
else if (soilValue.toInt() > 20) { myGLCD.print("8", 0, 52); }
else { myGLCD.print("9", 0, 52); }
myGLCD.setColor(VGA_WHITE);
myGLCD.setFont(BigFont);
myGLCD.print(soilValue, 24, 58);
myGLCD.print("%", 56, 58);
myGLCD.setColor(VGA_WHITE);
myGLCD.setFont(SmallFont);
myGLCD.print(oswietlenie, 0, 80);
myGLCD.print(chlodzenie, 20, 80);
myGLCD.print(pompa, 40, 80);
// Poziom wody
myGLCD.setColor(0, 255, 255);
myGLCD.setFont(SevenSegNumFont);
myGLCD.print("3", 0, 104);
myGLCD.setColor(VGA_WHITE);
myGLCD.setFont(BigFont);
if (dystans.toInt() >= 500) { myGLCD.print("--", 24, 108); }
else { if (dystans.toInt() < 10) { myGLCD.print(" ", 24, 108); myGLCD.print(dystans, 40, 108); }
else { myGLCD.print(dystans, 24, 108); } myGLCD.print("cm", 56, 108); }
// Oswietlenie
if (oswietlenie.toInt() == 0) { myGLCD.setColor(180, 180, 180); }
if (oswietlenie.toInt() == 1) { myGLCD.setColor(255, 0, 0); }
myGLCD.setFont(SevenSegNumFont);
myGLCD.print("0", 0, 128);
// Wentylator
if (chlodzenie.toInt() == 0) { myGLCD.setColor(180, 180, 180); }
if (chlodzenie.toInt() == 1) { myGLCD.setColor(0, 255, 0); }
myGLCD.setFont(SevenSegNumFont);
myGLCD.print("5", 30, 128);
// Nawodnienie
if (pompa.toInt() == 0) { myGLCD.setColor(180, 180, 180); }
if (pompa.toInt() == 1) { myGLCD.setColor(0, 0, 255); }
myGLCD.setFont(SevenSegNumFont);
myGLCD.print("2", 60, 128);
// Aktualizacja
myGLCD.setColor(VGA_WHITE);
myGLCD.setFont(SmallFont);
myGLCD.print("Aktualisierung alle ", 0, 208);
myGLCD.print(aktualizacja, 160, 208);
myGLCD.print("Sekunden.", 184, 208);
// Temperatura 1
myGLCD.setColor(VGA_WHITE);
myGLCD.setFont(SmallFont);
myGLCD.print(temperature1, 0, 152);
// Temperatura 2
myGLCD.setColor(VGA_WHITE);
myGLCD.setFont(SmallFont);
myGLCD.print(temperature2, 0, 164);
// Temperatura 3
myGLCD.setColor(VGA_WHITE);
myGLCD.setFont(SmallFont);
myGLCD.print(temperature3, 0, 176);
// Temperatura 3
myGLCD.setColor(VGA_WHITE);
myGLCD.setFont(SmallFont);
myGLCD.print(temperature3, 0, 176);
// Dzien, data, godzina
myGLCD.setColor(255, 255, 255);
myGLCD.setFont(SmallFont);
myGLCD.print(dayofweek, 0, 224);
myGLCD.print(", ", dayofweek.length() * 8, 224);
myGLCD.print(datum, dayofweek.length() * 10, 224);
myGLCD.print(godzina, 256, 224);
}
}