Lights!
CodeBug’s legs can be used to turn LEDs (and other things!) on or off. In this mode the legs are called outputs.
How LEDs work
LED stands for light emitting diode, they are essentially really small light bulbs. So firstly, what is a diode? A diode is simply something that lets electricity flow in one direction and not the other.
LEDs create light because they are made of two different materials. One of the materials requires the electrons to have less energy so they lose their extra energy in the form of light.