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

#include <avr/io.h>
             #include <util/delay.h>
             #include <avr/interrupt.h>
             #include <stdio.h>
             #include "GLCD.h"
             u8 test[3]={0x01,0x02,0x03};
             /* 포트제어  :RS-PORTE,1; WR-PORTE,2; RD-PORTE,3; CS-PORTE,0; REST-PORTE,4;
             데이타  : DB0-DB7 ---PORTC-P0^7; DB8-DB15---PORTD;
             spi 제어
             D_CLK-P1^7; D_CS-P1^4; D_DIN-P3^0; D_OUT-P3^1; D_PENIRQ-P3^4; */
             int main()
             {
                AVR_board_init();
                GLCD_init();
                GLCD_Test();
                GLCD_clear( White );  //LCD 흰색으로  clear
                GLCD_setTextColor(Green);   //글자색  초록색
                GLCD_displayStringLn(Line1, "INCHEON MEISTER");   //첫  번째  줄에  문장  출력
                Draw_Circle(100,100,20);
                LCD_DrawRectangle(50,50,100,100);
                puts0("test");
                _delay_ms(100);
                while(1)
                {
                    PORTA = ~PORTA;
                }
             }


            라.  라즈베리파이  프로그램

            1)  아파치서버  구축
            -  아파치  서버를  설치
            $  sudo apt-get install  apache2



            -  MySQL  Database를  설치
            $  sudo  apt-get  install  mysql-server  mysql-client


            -  PHP를  설치

            $  sudo  apt-get  install  php5  php5-common  libapache2-mod-php5






                                                         -  812  -
   814   815   816   817   818   819   820   821   822   823   824