diff options
Diffstat (limited to 'nxt_plugin/ejemplo.py')
-rw-r--r-- | nxt_plugin/ejemplo.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nxt_plugin/ejemplo.py b/nxt_plugin/ejemplo.py new file mode 100644 index 0000000..7a8d828 --- /dev/null +++ b/nxt_plugin/ejemplo.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python + +import nxt.locator +from nxt.sensor import * + +b = nxt.locator.find_one_brick() + +print 'Touch:', Touch(b, PORT_1).get_sample() +print 'Sound:', Sound(b, PORT_2).get_sample() |