Page 767 - 2
P. 767

else if(bmi + bmi_1/10 >= 18.5)
                            lcd_puts("Healthy! :D");
                        else
                            lcd_puts("Eat More...");
                        lcd_gotoxy(0,1);




                        break;
                    }
                }
            }


            void main(void)
            {


                init();  //  초기 설정 과정


                lcd_clear();


                lcd_puts("Now Loading...");
                lcd_gotoxy(0,1);
                for(i=0; i<=100; i++)    //  멋있는 로딩 화면 ^^
                {
                    intech_delay_ms(4);
                    lcd_gotoxy(0,1);
                    for(j=1; j < i / (100/16) + 1; j++)
                    {
                        lcd_puts("#");
                    }
                }


                #asm("sei")
                lcd_clear();
                lcd_gotoxy(0,0);
                lcd_puts("Mode Selection");
                lcd_gotoxy(0,1);
                lcd_puts("Press Button");


                while (1)
                      {


                        function_fnd();
                        switch (keyscan())
                               {
                               case 0:


                                                         - 767 -
   762   763   764   765   766   767   768   769   770   771   772