Hi - I’m returning to the world of Vex after a 5 year haitus and am just getting up to speed on V5 vs. old cortex.
I’m noticing that when reading the values of buttons and limit switches on the brain “devices” screen that they are reading 1 when not pressed and 0 when pressed. Is this normal? I believe the 3 wire ports are plugged in correctly (the notches are facing up).
If this is the case, when using Pressed and Released conditions, are they switched too?
No, pressed() and released() in VEXcode allow you to register a function to be called when those conditions are triggered, use pressing() to poll for the current state.
The devices screen on V5 doesn’t understand the difference between a pure digital input (which is what it shows) and the concept of a switch with pressed and released states.
I don’t know which programming environment you plan to use, or whether C++ or Python, however, if using VEXcode then pressing() will return true when the switch is currently pressed if configured as either a limit or bumper switch. pressed() and released() setup a function to be called when those events are detected.