Lego nxt Joystick für PCPython

Python-Programme
Anonymous
 Lego nxt Joystick für PC

Post by Anonymous »

Ich versuche, einen Lego NXT Joystick zu erstellen, um eine Verbindung zu meinem Computer herzustellen, um mit Kriegsdonnern zu spielen. Ich habe vor, NXT-Python zu verwenden, aber ich kann nichts zum Laufen bringen. Ich benutze diesen Code: < /p>
#!/usr/bin/python3
"""NXT-Python tutorial: find the brick."""
import nxt.locator

# Find a brick.
with nxt.locator.find() as b:
# Once found, print its name.
print("Found brick:", b.get_device_info()[0])
# And play a recognizable note.
b.play_tone(440, 250)
< /code>
Egal was ich tue, ich erhalte einen Backend -Fehler. Ich kann nicht herausfinden, was ich falsch mache! Ich kann nicht sehen, was ich auswähle, aber ich habe vor, das bald zu beheben.)

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post