SWIG experiments: introduce context

This commit is contained in:
Philippe Teuwen 2020-06-13 01:50:10 +02:00
parent a503dfcd98
commit 1562b75fc9
11 changed files with 435 additions and 88 deletions

View file

@ -2,6 +2,8 @@
import pm3
p=pm3.open("/dev/ttyACM0")
ctx=pm3.init()
p=pm3.open(ctx, "/dev/ttyACM0")
pm3.console(p, "hw status")
pm3.close(p)
pm3.exit(ctx)