This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import thread # the usual suspects of imports | |
from time import sleep | |
import RPi.GPIO as GPIO | |
import pygame.mixer | |
import random | |
from sys import exit | |
pygame.mixer.init(44100, -16, 1, 1024) # set up the mixer | |
announceAudio = pygame.mixer.Sound("seats-1.wav") # initially give announceAudio a value | |
soundChannelA = pygame.mixer.Channel(1) # initialize a mixer channel |