- better boundary check if necessary for write_char and write_char16 and
   refactoring of write_char and write_char16
 - better timing using xTaskGetTickCount, independant of framerate
      which is different for PAL/NTSC
disabled some debugs