How to Create a PSoC Android BLE App: Lesson 4 Write the Firmware