Jump to content

IO-4 Bricklet 2.0 Interrupts


Recommended Posts



In the version 2.0 of the IO-4 bricklet we have lost the ability to have an interrupt from any of the inputs. 


This is viewed as an 'improved' API but it seems that simple interrupts can be very useful in a number of scenarios.  I was using the older IO-4 bricklet to interface with a low frequency flow meter and it's hard to replicate a similar system now with the new bricklet.


Will the original bricklet be discontinued at some point ?


Is there any way of adding interrupt capability to the new bricklet ?


Will the IO-16 board go the same way ?



Link to comment
Share on other sites

What exactly do you mean by "interrupt from any of the inputs"? There should be no functionality lost with the new API.


If you call set_all_input_value_callback_configuration with period = 1ms and value_has_to_change=True, the CALLBACK_ALL_INPUT_VALUE will be called any time that there is any change on one of the inputs.


If you only want this for one channel you can use set_input_value_callback_configuration.

Link to comment
Share on other sites

Thanks for your reply, it makes sense now.  I was looking for a way to get an interrupt on a single edge (rising for instance) and with that in mind I misread the documentation.


I guess the simple answer for now is to simply filter out the 'falling edges' in my own code.  This will work fine for now although maybe long term being able to configure these callbacks for which edge type would be a nice addition.


Loving the Tinkerforge system by the way !

Link to comment
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.

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