Page 993 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 993

tx_string(string4); //다시  재시작한다.
                    }
                    return 0;
            }









            Controller Wi-Fi모듈  설정
            #include <avr/io.h>

            #include <util/delay.h>


            char rx;
            unsigned char toggle = 0;

            void Putch(char data)
            {
                    UDR = data;
                    while(!(UCSRA & (1<<TXC)));


                    if(toggle == 0)

                    {
                            PORTB = 0b00000001;
                            toggle = 1;
                    }

                    else
                    {
                            PORTB = 0x00;
                            toggle = 0;
                    }
                    //return UDR;

            }


            char Getch(void)
            {

                    while(!(UCSRA & 0x80));
                    return UDR;




                                                         -  986  -
   988   989   990   991   992   993   994   995   996   997   998