Jump to content

[Python] IO16 unter Python geht nicht


Recommended Posts

Das Beispielscript geht nicht, auch schon anders probiert. Alles aktuelle Bindings und Firmware.

 

Shell-Ouput:

Traceback (most recent call last):

  File "C:\python\dotmatrix.py", line 20, in <module>

    io.set_port_configuration('a', 1 << 0, 'o', False)

  File "C:\python\tinkerforge\bricklet_io16.py", line 122, in set_port_configuration

    self.ipcon.send_request(self, BrickletIO16.FUNCTION_SET_PORT_CONFIGURATION, (port, selection_mask, direction, value), 'c B c ?', '')

  File "C:\python\tinkerforge\ip_connection.py", line 728, in send_request

    request += struct.pack('<' + f, d)

struct.error: char format requires a bytes object of length 1

 

Edit: io.set_port('a', 0b00000000) geht auch nicht  :(

 

Link zu diesem Kommentar
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Clear editor

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

×
×
  • Neu erstellen...