Jump to content

HAT - can't find function "set_voltages_callback_configuration"


GoranP

Recommended Posts

Hello.

I'm using your library for Python, version 2.1.23,

When I try to use function "set_voltages_callback_configuration", (see link https://www.tinkerforge.com/en/doc/Software/Bricks/HAT_Brick_Python.html#BrickHAT.set_voltages_callback_configuration), then I got an error in my code.

When I open your file brick_hat.py, then I see that this is missing...

Best regards
Göran P

Link zu diesem Kommentar
Share on other sites

  • 3 weeks later...

I'm using Python API version 2.1.24 and is testing callback_voltages.
With the function "BrickHAT.set_voltages_callback_configuration(period, value_has_to_change)" I should be able to set value_has_to_change with True or False.
But when I test it, with False or True I still get values every period time.
I could change the period and it work's, I have tested for example with different times like 1000, 2000 3000.

What do I do wrong ??

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