Wakeup Light with touch user interface, anti-aliased Font, SD card access and RTC usage on STM32F746NG-DISCO board

Dependencies:   BSP_DISCO_F746NG_patch_fixed LCD_DISCO_F746NG TS_DISCO_F746NG FATFileSystem TinyJpgDec_interwork mbed-src

Committer:
the_sz
Date:
Sun Feb 21 04:26:17 2016 +0000
Revision:
14:2044ad5cd3fe
Parent:
13:811a5c5b3fd6
all fonts are working

Who changed what in which revision?

UserRevisionLine numberNew contents of line
the_sz 13:811a5c5b3fd6 1 #ifndef __FontX_h
the_sz 13:811a5c5b3fd6 2 #define __FontX_h
the_sz 13:811a5c5b3fd6 3
the_sz 13:811a5c5b3fd6 4 #include "mbed.h"
the_sz 13:811a5c5b3fd6 5
the_sz 13:811a5c5b3fd6 6 #define uint_8 unsigned char
the_sz 13:811a5c5b3fd6 7 #define int8 char
the_sz 13:811a5c5b3fd6 8 #define int16 short
the_sz 14:2044ad5cd3fe 9 #define int32 long
the_sz 13:811a5c5b3fd6 10
the_sz 13:811a5c5b3fd6 11 typedef struct
the_sz 13:811a5c5b3fd6 12 {
the_sz 14:2044ad5cd3fe 13 unsigned int16 Charwidth;
the_sz 14:2044ad5cd3fe 14 unsigned int16 Charheight;
the_sz 14:2044ad5cd3fe 15 unsigned int32 Offset;
the_sz 13:811a5c5b3fd6 16
the_sz 13:811a5c5b3fd6 17 } FONT_CHAR_INFO;
the_sz 13:811a5c5b3fd6 18
the_sz 13:811a5c5b3fd6 19 typedef struct
the_sz 13:811a5c5b3fd6 20 {
the_sz 13:811a5c5b3fd6 21 char StartCharacter;
the_sz 13:811a5c5b3fd6 22 char EndCharacter;
the_sz 13:811a5c5b3fd6 23 const FONT_CHAR_INFO *Descriptors;
the_sz 13:811a5c5b3fd6 24 const unsigned int8 *Bitmaps;
the_sz 13:811a5c5b3fd6 25
the_sz 13:811a5c5b3fd6 26 } FONT_INFO;
the_sz 13:811a5c5b3fd6 27
the_sz 14:2044ad5cd3fe 28 #include "Calibri36pt.h"
the_sz 14:2044ad5cd3fe 29 #include "TrebuchetMS270pt.h"
the_sz 14:2044ad5cd3fe 30 #include "TrebuchetMS135pt.h"
the_sz 13:811a5c5b3fd6 31
the_sz 13:811a5c5b3fd6 32 typedef enum
the_sz 13:811a5c5b3fd6 33 {
the_sz 13:811a5c5b3fd6 34 ALIGN_CENTER,
the_sz 13:811a5c5b3fd6 35 ALIGN_RIGHT,
the_sz 13:811a5c5b3fd6 36 ALIGN_LEFT
the_sz 13:811a5c5b3fd6 37
the_sz 13:811a5c5b3fd6 38 } FONTX_ALIGNMENT_ENUM;
the_sz 13:811a5c5b3fd6 39
the_sz 13:811a5c5b3fd6 40 uint32_t FontX_GetLength(char *Text,const FONT_INFO *pFont);
the_sz 13:811a5c5b3fd6 41 uint32_t FontX_GetHeight(const FONT_INFO *pFont);
the_sz 13:811a5c5b3fd6 42 void FontX_DisplayStringAt(uint16_t Xpos,uint16_t Ypos,uint16_t width,char *Text,FONTX_ALIGNMENT_ENUM Alignment,const FONT_INFO *pFont,uint32_t colorText,uint32_t colorBack);
the_sz 13:811a5c5b3fd6 43 uint32_t FontX_DisplayChar(uint16_t Xpos,uint16_t Ypos,char Ascii,const FONT_INFO *pFont,uint32_t colorText,uint32_t colorBack);
the_sz 13:811a5c5b3fd6 44
the_sz 13:811a5c5b3fd6 45 #endif
the_sz 13:811a5c5b3fd6 46