Esempio n. 1
0
    def __init__(self, config, state={}):
        super(Display, self).__init__(config, hw.display_for(config), state)
        config = config['ui']['display']

        self._enabled = config['enabled']
        self._rotation = config['rotation']
        self._webui = web.Server(config)

        self.init_display()
Esempio n. 2
0
    def __init__(self, config, state={}):
        super(Display, self).__init__(config, hw.display_for(config), state)
        self._enabled = config['ui']['display']['enabled']
        self._rotation = config['ui']['display']['rotation']
        self._video_enabled = config['ui']['display']['video']['enabled']
        self._video_port = config['ui']['display']['video']['port']
        self._video_address = config['ui']['display']['video']['address']
        self._httpd = None

        self.init_display()

        if self._video_enabled:
            _thread.start_new_thread(self._http_serve, ())
Esempio n. 3
0
    def __init__(self, config, state={}):
        super(Display, self).__init__(config, hw.display_for(config), state)
        config = config['ui']['display']

        self._enabled = config['enabled']
        self._rotation = config['rotation']

        self.init_display()

        self._canvas_next_event = threading.Event()
        self._canvas_next = None
        self._render_thread_instance = threading.Thread(
            target=self._render_thread, daemon=True)
        self._render_thread_instance.start()