SWIG %extend

This commit is contained in:
Philippe Teuwen 2020-06-14 02:41:23 +02:00
parent 21841cb9d9
commit 47ba4acd02
15 changed files with 790 additions and 39 deletions

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())