Closed letsgo00 closed 2 years ago
Hey, I think I had a similar problem and I got it to work after searching around, so I compiled some useful info that could help :
For Bluetooth connection:
sudo python setup.py install
sudo apt-get install libbluetooth-dev
and try again
import nxt.bluesock # Make sure you remember this!
b = nxt.bluesock.BlueSock('00:16:53:0E:7E:DE').connect() #replace the string with the one you got earlier
from nxt.motor import *
b.play_tone_and_wait(440.0, 100) # 440Hz is Concert A and 100ms for duration. Basically, make a beep noise to check connection
python2 is no longer supported, please try with python3 and master branch.
I cannot get this to work with any of my lego nxt bricks. Uding nxt-python version 2.2.2 (also tried 2.1.0) Getting this error: