Sign in
fuchsia
/
third_party
/
mesa
/
a2f1b6d268bc2afca357a6bf3c9aebc763840f46
/
.
/
.gitlab-ci
/
bare-metal
/
write-serial.py
blob: 6a57ea754af159d813af26641ff701bdd5a8942c [
file
] [
log
] [
blame
]
#!/usr/bin/python3
import
sys
import
serial
dev
=
sys
.
argv
[
1
]
command
=
sys
.
argv
[
2
]
+
'\n'
ser
=
serial
.
Serial
(
dev
,
115200
,
timeout
=
5
)
ser
.
write
(
command
.
encode
())
ser
.
close
()