Welcome! Log In Create A New Profile

Advanced

Changing the polarity of a button

Posted by Jaewon 
Changing the polarity of a button
January 06, 2021 02:24AM
To invert the polarity of a button (i.e., make it respond for release, instead of push), call the invert() method of ButtonTracker
button_.invert(button#);
or use NotAdapter (see the example in the NotAdapter manual page).
https://monkeylogic.nimh.nih.gov/docs_RuntimeFunctions.html#NotAdapter

The difference is that the former method inverts the button values stored in the data file as well and the latter does not.

The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.