E_paper, E_ink, Screen size 1.54", resolution 200x200, 4 wire spi, Waveshare, Black and White, Kl25Z, 8 wire print connector, supply 3.3 Volt, IL0373 Controller, font size is 8, 12, 16 and 24.
fonts.h@10:08e026240a5f, 2018-03-31 (annotated)
- Committer:
- GerritPathuis
- Date:
- Sat Mar 31 08:40:16 2018 +0000
- Revision:
- 10:08e026240a5f
- Parent:
- 0:665e04c85d8d
Minor text update
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
GerritPathuis | 0:665e04c85d8d | 1 | /** |
GerritPathuis | 0:665e04c85d8d | 2 | ****************************************************************************** |
GerritPathuis | 0:665e04c85d8d | 3 | * @file fonts.h |
GerritPathuis | 0:665e04c85d8d | 4 | * @author MCD Application Team |
GerritPathuis | 0:665e04c85d8d | 5 | * @version V1.0.0 |
GerritPathuis | 0:665e04c85d8d | 6 | * @date 18-February-2014 |
GerritPathuis | 0:665e04c85d8d | 7 | * @brief Header for fonts.c file |
GerritPathuis | 0:665e04c85d8d | 8 | ****************************************************************************** |
GerritPathuis | 0:665e04c85d8d | 9 | * @attention |
GerritPathuis | 0:665e04c85d8d | 10 | * |
GerritPathuis | 0:665e04c85d8d | 11 | * <h2><center>© COPYRIGHT(c) 2014 STMicroelectronics</center></h2> |
GerritPathuis | 0:665e04c85d8d | 12 | * |
GerritPathuis | 0:665e04c85d8d | 13 | * Redistribution and use in source and binary forms, with or without modification, |
GerritPathuis | 0:665e04c85d8d | 14 | * are permitted provided that the following conditions are met: |
GerritPathuis | 0:665e04c85d8d | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
GerritPathuis | 0:665e04c85d8d | 16 | * this list of conditions and the following disclaimer. |
GerritPathuis | 0:665e04c85d8d | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
GerritPathuis | 0:665e04c85d8d | 18 | * this list of conditions and the following disclaimer in the documentation |
GerritPathuis | 0:665e04c85d8d | 19 | * and/or other materials provided with the distribution. |
GerritPathuis | 0:665e04c85d8d | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
GerritPathuis | 0:665e04c85d8d | 21 | * may be used to endorse or promote products derived from this software |
GerritPathuis | 0:665e04c85d8d | 22 | * without specific prior written permission. |
GerritPathuis | 0:665e04c85d8d | 23 | * |
GerritPathuis | 0:665e04c85d8d | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
GerritPathuis | 0:665e04c85d8d | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
GerritPathuis | 0:665e04c85d8d | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
GerritPathuis | 0:665e04c85d8d | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
GerritPathuis | 0:665e04c85d8d | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
GerritPathuis | 0:665e04c85d8d | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
GerritPathuis | 0:665e04c85d8d | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
GerritPathuis | 0:665e04c85d8d | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
GerritPathuis | 0:665e04c85d8d | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
GerritPathuis | 0:665e04c85d8d | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
GerritPathuis | 0:665e04c85d8d | 34 | * |
GerritPathuis | 0:665e04c85d8d | 35 | ****************************************************************************** |
GerritPathuis | 0:665e04c85d8d | 36 | */ |
GerritPathuis | 0:665e04c85d8d | 37 | |
GerritPathuis | 0:665e04c85d8d | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
GerritPathuis | 0:665e04c85d8d | 39 | #ifndef __FONTS_H |
GerritPathuis | 0:665e04c85d8d | 40 | #define __FONTS_H |
GerritPathuis | 0:665e04c85d8d | 41 | |
GerritPathuis | 0:665e04c85d8d | 42 | /* Max size of bitmap will based on a font24 (17x24) */ |
GerritPathuis | 0:665e04c85d8d | 43 | #define MAX_HEIGHT_FONT 24 |
GerritPathuis | 0:665e04c85d8d | 44 | #define MAX_WIDTH_FONT 17 |
GerritPathuis | 0:665e04c85d8d | 45 | #define OFFSET_BITMAP 54 |
GerritPathuis | 0:665e04c85d8d | 46 | |
GerritPathuis | 0:665e04c85d8d | 47 | #ifdef __cplusplus |
GerritPathuis | 0:665e04c85d8d | 48 | extern "C" { |
GerritPathuis | 0:665e04c85d8d | 49 | #endif |
GerritPathuis | 0:665e04c85d8d | 50 | |
GerritPathuis | 0:665e04c85d8d | 51 | /* Includes ------------------------------------------------------------------*/ |
GerritPathuis | 0:665e04c85d8d | 52 | #include <stdint.h> |
GerritPathuis | 0:665e04c85d8d | 53 | |
GerritPathuis | 0:665e04c85d8d | 54 | typedef struct _tFont |
GerritPathuis | 0:665e04c85d8d | 55 | { |
GerritPathuis | 0:665e04c85d8d | 56 | const uint8_t *table; |
GerritPathuis | 0:665e04c85d8d | 57 | uint16_t Width; |
GerritPathuis | 0:665e04c85d8d | 58 | uint16_t Height; |
GerritPathuis | 0:665e04c85d8d | 59 | |
GerritPathuis | 0:665e04c85d8d | 60 | } sFONT; |
GerritPathuis | 0:665e04c85d8d | 61 | |
GerritPathuis | 0:665e04c85d8d | 62 | extern sFONT Font24; |
GerritPathuis | 0:665e04c85d8d | 63 | extern sFONT Font20; |
GerritPathuis | 0:665e04c85d8d | 64 | extern sFONT Font16; |
GerritPathuis | 0:665e04c85d8d | 65 | extern sFONT Font12; |
GerritPathuis | 0:665e04c85d8d | 66 | extern sFONT Font8; |
GerritPathuis | 0:665e04c85d8d | 67 | |
GerritPathuis | 0:665e04c85d8d | 68 | #ifdef __cplusplus |
GerritPathuis | 0:665e04c85d8d | 69 | } |
GerritPathuis | 0:665e04c85d8d | 70 | #endif |
GerritPathuis | 0:665e04c85d8d | 71 | |
GerritPathuis | 0:665e04c85d8d | 72 | #endif /* __FONTS_H */ |
GerritPathuis | 0:665e04c85d8d | 73 | |
GerritPathuis | 0:665e04c85d8d | 74 | |
GerritPathuis | 0:665e04c85d8d | 75 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
GerritPathuis | 0:665e04c85d8d | 76 |