Random working code for the PSoC 4