Page 61 - Gartenbahn
P. 61

60


               270              u8g2.drawStr(50, 47, "Abfahrt:");
               271
               272              u8g2.setFont(u8g2_font_7x14_tf);
               273              u8g2.drawStr(50, 64, Zeit2[a2]);
               274
               275              u8g2.drawFrame(0,30,35,33);
               276              /************************************/
               277              } while( u8g2.nextPage() );
               278              delay(50);
               279              }
               280
               281   /*****OLED-1,3Zoll am Anschluß 00 des MUX*************/
               282
               283       void OLED5 ()
               284       {
               285       tcaselect(4);
               286
               287              u8g2.firstPage();
               288              do {
               289              /******** Display erster Zug *********/
               290              u8g2.setFont(u8g2_font_7x14_tf);
               291              u8g2.drawStr(87, 13, "Gleis");
               292
               293              u8g2.setFont(u8g2_font_logisoso24_tr);
               294              u8g2.drawStr(90, 60, "03");
               295
               296              u8g2.setFont(u8g2_font_7x14_tf);
               297              u8g2.drawStr(2, 13, "Ziel:");
               298
               299              u8g2.setFont(u8g2_font_7x14_tf);
               300              u8g2.drawStr(2, 30, Ziel1[a1]);
               301
               302              u8g2.setFont(u8g2_font_7x14_tf);
               303              u8g2.drawStr(2, 47, "Abfahrt:");
               304
               305              u8g2.setFont(u8g2_font_7x14_tf);
               306              u8g2.drawStr(2, 64, Zeit1[a1]);
               307
               308               u8g2.drawFrame(87,30,35,33);
               309               /************************************/
               310               } while( u8g2.nextPage() );
               311               delay(50);
               312               }
               313
               314   /*******Uhr im 24-Stundentakt***********/
               315
               316      void Uhr()
               317      {
               318      if (dew1 < 59)
               319   {
               320       dew1++;                            // einer Minute
               321       }
               322
               323            else {
               324            dew1=0;
   56   57   58   59   60   61   62   63   64   65   66