s1.close() apdu = apdu_server.ApduServer(host="0.0.0.0", port=args.apdu_port) seph = seproxyhal.SeProxyHal(s2) button_tcp = None if args.button_port: button_tcp = FakeButton(args.button_port) finger_tcp = None if args.finger_port: finger_tcp = FakeFinger(args.finger_port) vnc = None if args.vnc_port: vnc = VNC(args.vnc_port, args.model) zoom = args.zoom if zoom is None: zoom = {'nanos': 2, 'blue': 1}.get(args.model, 1) screen = Screen(apdu, seph, button_tcp=button_tcp, finger_tcp=finger_tcp, color=args.color, model=args.model, ontop=args.ontop, rendering=rendering, vnc=vnc, keymap=args.keymap,
seph = seproxyhal.SeProxyHal(s2, automation=automation_path, automation_server=automation_server) button = None if args.button_port: button = FakeButton(args.button_port) finger = None if args.finger_port: finger = FakeFinger(args.finger_port) vnc = None if args.vnc_port: screen_size = display.MODELS[args.model].screen_size vnc = VNC(args.vnc_port, screen_size, args.vnc_password) zoom = args.zoom if zoom is None: default_zoom = { "nanos": 2, "nanox": 2, "blue": 1, } zoom = default_zoom.get(args.model) display_args = display.DisplayArgs(args.color, args.model, args.ontop, rendering, args.keymap, zoom) server_args = display.ServerArgs(apdu, button, finger, seph, vnc) screen = Screen(display_args, server_args) screen.run()
apdu = apdu_server.ApduServer(host="0.0.0.0", port=args.apdu_port) seph = seproxyhal.SeProxyHal(s2, automation=automation_path, automation_server=automation_server) button_tcp = None if args.button_port: button_tcp = FakeButton(args.button_port) finger_tcp = None if args.finger_port: finger_tcp = FakeFinger(args.finger_port) vnc = None if args.vnc_port: vnc = VNC(args.vnc_port, args.model, args.vnc_password) zoom = args.zoom if zoom is None: default_zoom = { "nanos": 2, "nanox": 2, "blue": 1, } zoom = default_zoom.get(args.model) screen = Screen(apdu, seph, button_tcp=button_tcp, finger_tcp=finger_tcp, color=args.color,