The VEX GO LED Bumper is used to detect physical contact and display colors.
The following article will cover:
- How the LED Bumper is Used
- LED Bumper Color Example Project
- Detect Object Example Project
Note: In this article, the example projects use the Code Base - LED Bumper Top GO Build.
How the LED Bumper is Used
The LED Bumper is used to detect physical contact and display colors. When the LED Bumper is pressed, it can be used to trigger a behavior. For example, the LED Bumper can be used to start or stop the Drivetrain when pressed.
The <Pressing bumper> block is used to determine if the LED Bumper is pressed.
Or, to display a certain color. The colors the LED Bumper can display are: off, green, and red.
The [Set bumper color] block is used to set the LED Bumper to a certain color.
LED Bumper Color Example Project
The code below will set the LED Bumper color to green if pressed, and red otherwise.
Detect Object Example Project
The code below will drive the Code Base away from an object once the LED Bumper is pressed.