C++ Class implementation for control LED on STM32F10x