added cast to double to avoid warning
added support for stm32f4 in lcd and touch panel