added y boundary checking and modified x boundary checking in string output function
added y boundary checking and modified x boundary checking in string output function

kbiva/stm32f103_libs,kbiva/stm32f103_libs