You'd need to get the datasheet for the Leo's processor, and see if you can match up the registers and ports used in the code with those on the processor.
You'd need to get the datasheet for the Leo's processor, and see if you can match up the registers and ports used in the code with those on the processor.