Professional Documents
Culture Documents
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