~aleteoryx/muditaos

ref: 17f64cb3e4865ec85d4cb5a7f8a2bb9db68d023c muditaos/test/phone_unlock.py -rw-r--r-- 428 bytes
17f64cb3 — Lucjan Bryndza [EGD-5022] Fix invalid open flags in vfscore 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python
# Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
# For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

# unlock Desktop
from harness.uart import connection
from interface.defs import key_codes

# write pin
connection.send_key(key_codes["enter"])
connection.send_key(key_codes["#"])
connection.send_key(3)
connection.send_key(3)
connection.send_key(3)
connection.send_key(3)