●LED blinker
I should have done this first before servo controls.
PIO1_23 pin of LPC11U35 is connected to green LED on the robot and PIO0_7 goes to blue LED.
When you turn the pin output low the LED turns on. When it's high the LED turns off.

#include "mbed.h"

DigitalOut myled1(P1_23);   //green
DigitalOut myled2(P0_7);    //blue

int main() {
    while(1) {
        myled1 = 1; //green off
        myled2 = 0; //blue on
        myled1 = 0; //green on
        myled2 = 1; //blue off

Please visit the shop.