Uses the same fonts as the SPI_TFT_ILI9341 Library (I have many, and a html/php font editor for that)

Revision:
4:44a66bd8c16c
Parent:
3:41e8d7dc279a
Child:
5:dad648238df3
diff -r 41e8d7dc279a -r 44a66bd8c16c SPI_TFT_ILI9225.cpp
--- a/SPI_TFT_ILI9225.cpp	Wed Nov 23 09:39:54 2016 +0000
+++ b/SPI_TFT_ILI9225.cpp	Wed Nov 23 09:41:36 2016 +0000
@@ -611,87 +611,20 @@
     w = zeichen[0];                          // width of actual char
     _startData();
 
-            // Portrait
-            for (j = 0; j < vert; j++) {  //  vert line
-                for (i = 0; i < hor; i++) {   //  horz line
-                    z =  zeichen[bpl * i + ((j & 0xF8) >> 3)+1];
-                    b = 1 << (j & 0x07);
-                    if (( z & b ) == 0x00) {
-                        spi.write(_background >> 8);
-                        spi.write(_background & 0xff);
-                    } else {
-                        spi.write(_foreground >> 8);
-                        spi.write(_foreground & 0xff);
-                    }
-                }
+    // Portrait
+    for (j = 0; j < vert; j++) {  //  vert line
+        for (i = 0; i < hor; i++) {   //  horz line
+            z =  zeichen[bpl * i + ((j & 0xF8) >> 3)+1];
+            b = 1 << (j & 0x07);
+            if (( z & b ) == 0x00) {
+                spi.write(_background >> 8);
+                spi.write(_background & 0xff);
+            } else {
+                spi.write(_foreground >> 8);
+                spi.write(_foreground & 0xff);
             }
-
-//    switch (_orientation) {
-//        case 0:
-//            // Portrait
-//            for (j = 0; j < vert; j++) {  //  vert line
-//                for (i = 0; i < hor; i++) {   //  horz line
-//                    z =  zeichen[bpl * i + ((j & 0xF8) >> 3)+1];
-//                    b = 1 << (j & 0x07);
-//                    if (( z & b ) == 0x00) {
-//                        spi.write(_background >> 8);
-//                        spi.write(_background & 0xff);
-//                    } else {
-//                        spi.write(_foreground >> 8);
-//                        spi.write(_foreground & 0xff);
-//                    }
-//                }
-//            }
-//            break;
-//        case 1:
-//            // Landscape
-//            for (int i=0; i<hor; i++) {   //  horz line
-//                for (int j=vert-1; j>=0; j--) {  //  vert line
-//                    z =  zeichen[bpl * i + ((j & 0xF8) >> 3)+1];
-//                    b = 1 << (j & 0x07);
-//                    if (( z & b ) == 0x00) {
-//                        spi.write(_background >> 8);
-//                        spi.write(_background & 0xff);
-//                    } else {
-//                        spi.write(_foreground >> 8);
-//                        spi.write(_foreground & 0xff);
-//                    }
-//                }
-//            }
-//            break;
-//        case 2:
-//            // Portrait
-//            for (int j=vert-1; j>=0; j--) {  //  vert line
-//                for (int i=hor-1; i>=0; i--) {   //  horz line
-//                    z =  zeichen[bpl * i + ((j & 0xF8) >> 3)+1];
-//                    b = 1 << (j & 0x07);
-//                    if (( z & b ) == 0x00) {
-//                        spi.write(_background >> 8);
-//                        spi.write(_background & 0xff);
-//                    } else {
-//                        spi.write(_foreground >> 8);
-//                        spi.write(_foreground & 0xff);
-//                    }
-//                }
-//            }
-//            break;
-//        case 3:
-//            // Landscape
-//            for (int i=hor-1; i>= 0; i--) {   //  horz line
-//                for (int j=0; j<vert; j++) {  //  vert line
-//                    z =  zeichen[bpl * i + ((j & 0xF8) >> 3)+1];
-//                    b = 1 << (j & 0x07);
-//                    if (( z & b ) == 0x00) {
-//                        spi.write(_background >> 8);
-//                        spi.write(_background & 0xff);
-//                    } else {
-//                        spi.write(_foreground >> 8);
-//                        spi.write(_foreground & 0xff);
-//                    }
-//                }
-//            }
-//            break;
-//    }
+        }
+    }
     
     _endData();
     _setWindowMax();