add LED code for debug