Page 50 - Gartenbahn
P. 50

49


               149 } while( u8g2.nextPage() );
               150 delay(50);
               151 }
               152
               153 /***** Display 3*************/
               154
               155 void OLED3 ()
               156 {
               157 tcaselect(2);
               158
               159 u8g2.firstPage();
               160 do {
               161 /******** Display erster Zug *********/
               162 u8g2.setFont(u8g2_font_7x14_tf);
               163 u8g2.drawStr(2, 13, "Gleis");
               164
               165 u8g2.setFont(u8g2_font_logisoso24_tr);
               166 u8g2.drawStr(2, 60, "02");
               167
               168 u8g2.setFont(u8g2_font_7x14_tf);
               169 u8g2.drawStr(50, 13, "Ziel:");
               170
               171 u8g2.setFont(u8g2_font_7x14_tf);
               172 u8g2.drawStr(50, 30, Ziel[1]);
               173
               174 u8g2.setFont(u8g2_font_7x14_tf);
               175 u8g2.drawStr(50, 47, "Abfahrt:");
               176
               177 u8g2.setFont(u8g2_font_7x14_tf);
               178 u8g2.drawStr(50, 64, Zeit[6]);
               179
               180 u8g2.drawFrame(0,30,35,33);
               181 /************************************/
               182 } while( u8g2.nextPage() );
               183 delay(50);
               184 }
               185
               186 /***** Display 4*************/
               187
               188 void OLED4 ()
               189 {
               190 tcaselect(5);
               191
               192 u8g2.firstPage();
               193 do {
               194 /******** Display erster Zug *********/
               195 u8g2.setFont(u8g2_font_7x14_tf);
               196 u8g2.drawStr(2, 13, "Gleis");
               197
               198 u8g2.setFont(u8g2_font_logisoso24_tr);
               199 u8g2.drawStr(2, 60, "04");
   45   46   47   48   49   50   51   52   53   54   55