Jump to content

HAT - can't find function "set_voltages_callback_configuration"


Recommended Posts

Posted

OK. I found it in the description on the page, see my earlier link, and therefore I thought it was OK. In any case, that what the function I like to use.
Understand, I'll wait until next  release.

..

  • 3 weeks later...
Posted

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

Posted

Hi,

Have you printed the values each period? I'm assuming, that your power supply is fluctuating enough, that the HAT can measure this. (I've just tried this here with a USB power supply and can reproduce it.) So the value is in fact changing every period.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...