Firmware of KIT-42 can be good reference for PSoC4000 devices, but in many cases, it can NOT be ported to PSoC4000 devices directly.
On KIT-042, the target device is a PSoC4200 series device. Many peripherals and core features of PSoC4000 and PSoC4200 are different. But it doesn't mean the code can not ported at all. It may requires more points to care than using KIT-040.
If possible, you can order a KIT-040, the target device on this kit is PSoC4000, except pins assignment, the code can be ported to CY8C4014FNI-421 directly.