added 1000 frames limit for rainbow

rainbow now stops after drawing 1000 frames
+ altered pixel write method (faster)
added frame counter for semihost

semihost now writes the total number of displayed frames when quitting