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

void  cousor  (int  lin,  int  gulza);



            void  LCD_clear  (void);


            void  window  (void);


            void  LCD_fix  (int  lin, int  width,  char c);   //one  gulza, ( down move, right move,  text  )


            void  LCD  (int  lin,  char  *  c,  char  *  c2);  //  one  line,  display  it



            void TESTGLCD  (short *  a);
            void  LCD_set  (char  c[10][10],  char  c2[10][10]);
            void  extLCD  (int  lin,  char  *  c);
            void  GLCD_Test(void);


            #endif    /*_GLCD_H*/


            나.라즈베리파이  파이썬  가위바위보  게임  프로그램  및  CORTEX-M3와  USART

            통신  프로그램


            #  -*-  coding:  utf-8  -*-
            #한글  코드를  쓰기  위해서↑
            #파이썬은  들여쓰기  중요함!  들여쓰기  꼭  지켜  주어야함
            import  RPi.GPIO  as  GPIO  #GPIO  포트를  쓰기  위해서
            import  random#랜덤함수를  쓰기  위해서
            import  pygame#파이게임  라이브러리를  이용하기  위하여
            import  time#딜레이를  주기  위해서
            from  pygame.locals  import  *
            import  serial
            ser  =  serial.Serial(
            port='/dev/ttyAMA0',
            baudrate=9600,
            parity=serial.PARITY_NONE,
            stopbits=serial.STOPBITS_ONE,
            bytesize=serial.EIGHTBITS,
            timeout=0.1
            )
            GPIO.setmode(GPIO.BCM)#gpio를  번호로  받기  위해서
            #gpio  13,19,26,6,5번을  입력으로  설정



                                                         -  727  -
   729   730   731   732   733   734   735   736   737   738   739