the slave Mega code for the bus