Ekran
Dependencies: mbed LCD_DISCO_F469NIa CANlibrary SD_DISCO_F469NI BSP_DISCO_F469NIa EEPROM_DISCO_F469NI
draw_library.h
- Committer:
- stefan996
- Date:
- 2019-11-16
- Revision:
- 0:3bd86fc3a252
- Child:
- 1:dad6a10be1f7
File content as of revision 0:3bd86fc3a252:
#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();