Code for the electronics of HMTL