Revert "SWIG experiments: introduce context"

This reverts commit aa8bf8e0f4.
This commit is contained in:
Philippe Teuwen 2020-06-13 23:43:58 +02:00
commit 78c4f7929a
11 changed files with 87 additions and 434 deletions

View file

@ -1,5 +1,12 @@
import sys
import pm3
ctx=pm3.get_current_context()
p=pm3.get_dev(ctx, 0)
pm3.console(p, "hw status")
def main():
print('Hello world')
#p=pm3.open("/dev/ttyACM0")
p=pm3.get_current_dev()
pm3.console(p, "hw status")
#pm3.close(p)
if __name__ == "__main__":
main()