![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Ekran
Dependencies: mbed LCD_DISCO_F469NIa CANlibrary SD_DISCO_F469NI BSP_DISCO_F469NIa EEPROM_DISCO_F469NI
draw_library.h@0:3bd86fc3a252, 2019-11-16 (annotated)
- Committer:
- stefan996
- Date:
- Sat Nov 16 13:24:00 2019 +0000
- Revision:
- 0:3bd86fc3a252
- Child:
- 1:dad6a10be1f7
Ekran
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
stefan996 | 0:3bd86fc3a252 | 1 | #include "LCD_DISCO_F469NI.h" |
stefan996 | 0:3bd86fc3a252 | 2 | |
stefan996 | 0:3bd86fc3a252 | 3 | #define BYTE_TO_BINARY_PATTERN "%c%c%c%c%c%c%c%c" //Pattern which converts uint8_t to binary(array of 8 chars) |
stefan996 | 0:3bd86fc3a252 | 4 | #define BYTE_TO_BINARY(byte)\ |
stefan996 | 0:3bd86fc3a252 | 5 | (byte & 0x80 ? '1' : '0'),\ |
stefan996 | 0:3bd86fc3a252 | 6 | (byte & 0x40 ? '1' : '0'),\ |
stefan996 | 0:3bd86fc3a252 | 7 | (byte & 0x20 ? '1' : '0'),\ |
stefan996 | 0:3bd86fc3a252 | 8 | (byte & 0x10 ? '1' : '0'),\ |
stefan996 | 0:3bd86fc3a252 | 9 | (byte & 0x08 ? '1' : '0'),\ |
stefan996 | 0:3bd86fc3a252 | 10 | (byte & 0x04 ? '1' : '0'),\ |
stefan996 | 0:3bd86fc3a252 | 11 | (byte & 0x02 ? '1' : '0'),\ |
stefan996 | 0:3bd86fc3a252 | 12 | (byte & 0x01 ? '1' : '0') |
stefan996 | 0:3bd86fc3a252 | 13 | |
stefan996 | 0:3bd86fc3a252 | 14 | typedef struct BlackWhiteImage |
stefan996 | 0:3bd86fc3a252 | 15 | { |
stefan996 | 0:3bd86fc3a252 | 16 | char name; |
stefan996 | 0:3bd86fc3a252 | 17 | uint16_t width; |
stefan996 | 0:3bd86fc3a252 | 18 | uint16_t height; |
stefan996 | 0:3bd86fc3a252 | 19 | uint8_t *bitmap; |
stefan996 | 0:3bd86fc3a252 | 20 | } GEAR,CHAR; |
stefan996 | 0:3bd86fc3a252 | 21 | |
stefan996 | 0:3bd86fc3a252 | 22 | |
stefan996 | 0:3bd86fc3a252 | 23 | const uint16_t GearXVPos=750,GearYVPos=112; |
stefan996 | 0:3bd86fc3a252 | 24 | |
stefan996 | 0:3bd86fc3a252 | 25 | void PrintChar_24(CHAR Char, uint16_t StartXPos, uint16_t StartYPos, uint32_t TextColor); |
stefan996 | 0:3bd86fc3a252 | 26 | void PrintChar(CHAR Char, uint16_t StartXPos, uint16_t StartYPos, uint32_t TextColor); |
stefan996 | 0:3bd86fc3a252 | 27 | void PrintString(char str[], uint8_t font, uint16_t StartXPos, uint16_t StartYPos, uint32_t TextColor); |
stefan996 | 0:3bd86fc3a252 | 28 | |
stefan996 | 0:3bd86fc3a252 | 29 | void PrintMain(); |