Hexiwear OLED Display Driver

Dependents:   Hexi_OLED_TextImage_Example Hexi_OLED_Text_Example Hexi_OLED_Image_Example security-console-app ... more

Files at this revision

API Documentation at this revision

Comitter:
khuang
Date:
Sat Sep 24 19:45:48 2016 +0000
Parent:
7:9961c525e249
Commit message:
Commented out checking to see if text will fit in textbox for DrawTextBox. Font width and height specified in font information may be too much.

Changed in this revision

Hexi_OLED_SSD1351.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 9961c525e249 -r ae5fad429790 Hexi_OLED_SSD1351.cpp
--- a/Hexi_OLED_SSD1351.cpp	Fri Aug 26 22:54:49 2016 +0000
+++ b/Hexi_OLED_SSD1351.cpp	Sat Sep 24 19:45:48 2016 +0000
@@ -635,7 +635,8 @@
 
     text_height = selectedFont_height;
   
-
+    /* Disable this for now.Generated Fontwidth supposedly a lot wider than it really is*/
+    #if 0
    if  (( oled_dynamic_area.width  < text_width )||( oled_dynamic_area.height < text_height ))
    {
         oled_dynamic_area_t textArea;
@@ -643,6 +644,7 @@
         textArea.height = text_height;
         SetDynamicArea(&textArea);
    }
+   #endif 
   
     currentChar_y = ( oled_dynamic_area.height - text_height ) >> 1;