def __init__(self, disp, draw):
     self.disp = disp
     self.draw = draw
     self.nextUpdate = get_current_time()
     self.nextBlink = get_current_time() + self.blinkTime
     self.verticalUpdate = get_current_time() +self.verticalScrollTime
     self.origin.append('Surfers Paradise, QLD')
     self.destination.append('Queensland University of Technology')
     self.routes = google.get_directions(self.origin[self.selectedRoute],self.destination[self.selectedRoute],'transit')
     PTCGPIO.setup(ledMap,buttonMap)
     self.buttonStates = [False] * len(buttonMap)
     self.clearScreen()
     self.alarm = Alarm.Alarm()
     self.alarm.setAlarmEpoch(google.departure_time_val(self.routes[self.selectedRoute]))
    def __init__(self, canvas, image, draw):
        if(self.DEBUG == 0):
            import PTCGPIO
        self.canvas = canvas
        self.image = image
        self.draw = draw

        self.blinkOn = True
        
        self.nextUpdate = get_current_time() + self.updateTime
        self.nextBlink = get_current_time() + self.blinkTime
        self.verticalUpdate = get_current_time() +self.verticalScrollTime
        self.saveInformation()
        self.getRoutes()
        #self.routes = google.get_directions(self.origin[0],self.destination[self.selectedRoute],'transit')
        if(self.DEBUG == 0):
            PTCGPIO.setup(ledMap,buttonMap)
        self.buttonStates = [True] * len(buttonMap) #true due to active low buttons
        self.clearScreen()
        self.alarm = Alarm2.Alarm()
        self.alarm.setAlarmEpoch(google.departure_time_val(self.routes[self.selectedRoute]))