as per issue #62 The function does not work as the computation of middle was incorrect. it either needed to be uint16_t middle = ILI9341_TFTHEIGHT - top - bottom; or what I prefer and did: uint16_t middle = ILI9341_TFTHEIGHT - (top + bottom);