NucleoF446 re + SSD1331 simple Library

Dependents:   Nucleo_446 Nucleo446_SSD1331

Revision:
1:85198abc3103
Parent:
0:9442efe129e7
diff -r 9442efe129e7 -r 85198abc3103 ssd1331.h
--- a/ssd1331.h	Thu Oct 11 01:58:04 2018 +0000
+++ b/ssd1331.h	Thu Oct 11 04:10:23 2018 +0000
@@ -7,6 +7,9 @@
 
 #include "gfxfont.h"
 #include "./fonts/FreeMonoBold9pt7b.h"
+#include "./fonts/FreeSans9pt7b.h"
+#include "./fonts/FreeSerif9pt7b.h"
+#include "./fonts/TomThumb.h"
 
 #define NumOfFont   8
 
@@ -28,15 +31,20 @@
     void DrawRectangleFill(  uint8_t xs, uint8_t ys, uint8_t xe, uint8_t ye, uint16_t line_color,uint16_t fill_color );
     int put_charPattern(char CharCode,uint16_t CHAR_COLOR,uint16_t xs,uint16_t ys,int FontSel);
     int PutString(int x,int y,char *string,uint16_t CharColor,int FontSel);
+    void GetFontInfo(int FontNo, FontList  *FntLst);
+    int GetFontNum(void);
 
 private:
     SPI _spi;
     DigitalOut _cs;
     DigitalOut _dc;
     DigitalOut _rst;
-    FontList  FntList[NumOfFont];
 
+    FontList  FntList[NumOfFont];
+    int FontNum;
+ 
 
+    int SetFontInf();
     void DataWr(uint8_t data);
     void CmdWr(uint8_t Cmd);