Page 1111 - 3-2
P. 1111

else   if (rx_bit_cnt == 8 && rx_clk_cnt == baud_rate && rxd != 1)
                     begin
                     state_rx  <= 0;
                     rx_data_buffer  <= 8'b00000000;         // invalidate
                     end
                       end
                     end
             endmodule



              다 파이썬 관련 코드.


            *********************** 디스플레이 +     스피커 제어 코드*************************


            # -*- coding: utf-8 -*-


            import transcribe_streaming_module


            from Music_Player import *
            from RealServer import *


            import sys
            import pygame


            from pygame.locals import *
            from multiprocessing import Process, Queue


            from serial import *


            ser = Serial('/dev/ttyS0', 9600)
            ser.write('1')


            err = 0


            pygame.init()


            TARGET_FPS = 50
            clock = pygame.time.Clock()


            screen = pygame.display.set_mode((800, 480), HWSURFACE | DOUBLEBUF | FULLSCREEN)
            pygame.display.set_caption('Face')


            face1 = pygame.image.load('LCD/face-1.png')
            face2 = pygame.image.load('LCD/face-2.png')
            face3 = pygame.image.load('LCD/face-3.png')
            face4 = pygame.image.load('LCD/face-4.png')
            face5 = pygame.image.load('LCD/face-5.png')



                                                        - 1111 -
   1106   1107   1108   1109   1110   1111   1112   1113   1114   1115   1116