add code for this project support led write_serial