marvin:ecp5
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
marvin:ecp5 [2009/01/29 09:23] – deva | marvin:ecp5 [2009/01/29 09:59] – deva | ||
---|---|---|---|
Line 19: | Line 19: | ||
{{ : | {{ : | ||
- | From wikipedia: //" | + | From wikipedia: //" |
LeJOS has built an entire framework for bluetooth communication, | LeJOS has built an entire framework for bluetooth communication, | ||
- | (([[http:// | + | (([[http:// |
- | We do not want to go further into the details of the protocol itself, but the way the device is shared can eventually end up in data loss(([[http:// | + | We do not want to go further into the details of the protocol itself, but the way the device is shared can eventually end up in data loss(([[http:// |
On the PC LeJOS has also made a bluetooth interface. This works exactly the same as the one on the NXT, and we therefore simply had to make a connection (listening on the NXT and connecting on the PC) and then creating input/ | On the PC LeJOS has also made a bluetooth interface. This works exactly the same as the one on the NXT, and we therefore simply had to make a connection (listening on the NXT and connecting on the PC) and then creating input/ | ||
Line 39: | Line 39: | ||
=====The BTControl class===== | =====The BTControl class===== | ||
{{ : | {{ : | ||
- | Bluetooth control | + | Bluetooth control |
- | It reacts only on the keycodes | + | It reacts only on the keycodes |
^ Key ^ KeyCode ^ Variable | ^ Key ^ KeyCode ^ Variable | ||
Line 70: | Line 70: | ||
case directionLeft: | case directionLeft: | ||
left(200); | left(200); | ||
+ | |||
+ | |||
break; | break; | ||
marvin/ecp5.txt · Last modified: 2009/01/29 10:58 by rieper