Implement embedded code for fan and LED control