The mbed code for ESE350