aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/armdebug/nxt-python-fantom/examples/message_test.py
blob: c2fbda7d160c41d056a5f0629a0c37956566d6ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python

#During this test you need to run any program on the brick
#which doesn't use the messaging system. Most programs fit
#this requirement.

import nxt.locator

b = nxt.locator.find_one_brick()
for box in range(10):
    b.message_write(box, 'message test %d' % box)
for box in range(10):
    local_box, message = b.message_read(box, box, True)
    print local_box, message
print 'Test succeeded!'