SWIG %extend

This commit is contained in:
Philippe Teuwen committed 2020-06-14 21:35:23 +02:00
1 parent 21841cb9d9
commit 47ba4acd02
15 files changed
+790 -39

No files matched your search

+3 -3
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
import pm3
p=pm3.open("/dev/ttyACM0")
pm3.console(p, "hw status")
pm3.close(p)
p=pm3.device("/dev/ttyACM0")
p.console("hw status")
print("Device:", p.get_name())