aboutsummaryrefslogtreecommitdiff
path: root/home/dot_local/share/bin/executable_lsjlink
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2026-10-12 06:18:21 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2026-10-12 06:18:21 +0200
commit167c7283dc8d63554c7f22dc36772218362d95fd (patch)
tree3eb3ed7cde835f9566b410fa40e3734be828d59b /home/dot_local/share/bin/executable_lsjlink
parent6bbc3dde7b296a485a8ad14d992b4d58b89bcdea (diff)
pull work dotfilesHEADmaster
Diffstat (limited to 'home/dot_local/share/bin/executable_lsjlink')
-rw-r--r--home/dot_local/share/bin/executable_lsjlink11
1 files changed, 11 insertions, 0 deletions
diff --git a/home/dot_local/share/bin/executable_lsjlink b/home/dot_local/share/bin/executable_lsjlink
new file mode 100644
index 0000000..bb7d8ee
--- /dev/null
+++ b/home/dot_local/share/bin/executable_lsjlink
@@ -0,0 +1,11 @@
+#!/usr/bin/env python3
+
+import pylink
+
+jlink = pylink.JLink()
+
+emulators = jlink.connected_emulators()
+
+for emu in emulators:
+ print(f"{emu.SerialNumber}: {emu.acProduct.decode('ascii')}")
+