Led application now wirtten in C++. Some changes are still to be made for fully functionality.