Jump to content
View in the app

A better way to browse. Learn more.

Tinkerunity

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Geschrieben

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  :(

 

Geschrieben

Mh, bei mir gehts.

 

Edit: Ah, mit Python3 kann ich das reproduzieren. Komisch, dann müssen die Python bindings mit der IO16/IO4 noch nie richtig funktioniert haben :). Gucke ich mir gleich an, ist vermutlich mal wieder so ein byte vs char gefummel.

Geschrieben
  • Autor

Ah, super, da warte ich  ;D

 

Vorher hatte ich das ganze unter Ubuntu gemacht, kann sein, dass da die 2.7 drauf war, weil da ging immer alles.

 

Unter Windows habe ich die 3er drauf...

Geschrieben
  • Autor

Super, geht. Danke ;D

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...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.