Lighting up an LED with CodeBug
Connect a red croc-clip to the power leg (PWR) of CodeBug and another croc-clip to leg 0.
LEDs have two leads and one is longer than the other. The longer lead is the positive one, so connect this to the red croc-clip that is attached to the PWR leg on CodeBug. The shorter lead is the negative one, so connect this to the croc-clip attached to leg 0. LEDs will also sometimes have a flat edge on the plastic casing, this indicates the negative side.
Follow the tutorial below to flash your LED!