Code for the embedded system