![](/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
Diff: draw_library.h
- Revision:
- 0:3bd86fc3a252
- Child:
- 1:dad6a10be1f7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/draw_library.h Sat Nov 16 13:24:00 2019 +0000 @@ -0,0 +1,29 @@ +#include "LCD_DISCO_F469NI.h" + +#define BYTE_TO_BINARY_PATTERN "%c%c%c%c%c%c%c%c" //Pattern which converts uint8_t to binary(array of 8 chars) +#define BYTE_TO_BINARY(byte)\ + (byte & 0x80 ? '1' : '0'),\ + (byte & 0x40 ? '1' : '0'),\ + (byte & 0x20 ? '1' : '0'),\ + (byte & 0x10 ? '1' : '0'),\ + (byte & 0x08 ? '1' : '0'),\ + (byte & 0x04 ? '1' : '0'),\ + (byte & 0x02 ? '1' : '0'),\ + (byte & 0x01 ? '1' : '0') + +typedef struct BlackWhiteImage +{ + char name; + uint16_t width; + uint16_t height; + uint8_t *bitmap; +} GEAR,CHAR; + + +const uint16_t GearXVPos=750,GearYVPos=112; + +void PrintChar_24(CHAR Char, uint16_t StartXPos, uint16_t StartYPos, uint32_t TextColor); +void PrintChar(CHAR Char, uint16_t StartXPos, uint16_t StartYPos, uint32_t TextColor); +void PrintString(char str[], uint8_t font, uint16_t StartXPos, uint16_t StartYPos, uint32_t TextColor); + +void PrintMain(); \ No newline at end of file