You are on page 1of 1

InitEMService:

Initialize Port E
Wait for peripheral clock to be ready
Initialize PE5 as a digital output
Turn off EM

RunEMService:
If this event is PickUpMiner
Turn on EM
Else if this event is DropMiner
Turn off EM
End if

You might also like