Example that changes LED color based on remaining power percent