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()
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() 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()