Page 98 - MDP2020-2
P. 98

|    인천전자마이스터고등학교  ·············································································································
            92


                else  if(day==10)  u8g.drawStr(78,  20,  "/10");
                else  if(day==11)  u8g.drawStr(78,  20,  "/11");
                else  if(day==12)  u8g.drawStr(78,  20,  "/12");
                else  if(day==13)  u8g.drawStr(78,  20,  "/13");
                else  if(day==14)  u8g.drawStr(78,  20,  "/14");
                else  if(day==15)  u8g.drawStr(78,  20,  "/15");
                else  if(day==16)  u8g.drawStr(78,  20,  "/16");
                else  if(day==17)  u8g.drawStr(78,  20,  "/17");
                else  if(day==18)  u8g.drawStr(78,  20,  "/18");
                else  if(day==19)  u8g.drawStr(78,  20,  "/19");
                else  if(day==20)  u8g.drawStr(78,  20,  "/20");
                else  if(day==21)  u8g.drawStr(78,  20,  "/21");
                else  if(day==22)  u8g.drawStr(78,  20,  "/22");
                else  if(day==23)  u8g.drawStr(78,  20,  "/23");
                else  if(day==24)  u8g.drawStr(78,  20,  "/24");
                else  if(day==25)  u8g.drawStr(78,  20,  "/25");
                else  if(day==26)  u8g.drawStr(78,  20,  "/26");
                else  if(day==27)  u8g.drawStr(78,  20,  "/27");
                else  if(day==28)  u8g.drawStr(78,  20,  "/28");
                else  if(day==29)  u8g.drawStr(78,  20,  "/29");
                else  if(day==30)  u8g.drawStr(78,  20,  "/30");
                else  if(day==31)  u8g.drawStr(78,  20,  "/31");
            }


            void  display_date(void){
                if(date==0)  u8g.drawStr(55,  10,  "SUN");

                else  if(date==1)  u8g.drawStr(55,  10,  "MON");
                else  if(date==2)  u8g.drawStr(55,  10,  "TUE");
                else  if(date==3)  u8g.drawStr(55,  10,  "WED");
                else  if(date==4)  u8g.drawStr(55,  10,  "THU");
                else  if(date==5)  u8g.drawStr(55,  10,  "FRI");
                else  if(date==6)  u8g.drawStr(55,  10,  "SAT");
            }


            void  display_time(void){
                  //time  display
                u8g.setFont(u8g_font_ncenB12);
                u8g.drawStr(30,  45,  "          :            :");


                //Sec  display
                if(Sec<10){
                    u8g.drawStr(85,  47,  "0");
                    u8g.setPrintPos(95,  47);
                    u8g.print(Sec);
                }
   93   94   95   96   97   98   99   100   101   102   103