Raspberry pi gpio python script on banana pi m2 plus

i want to make a retrorangepi console with a gamboy sp with a banana pi m2+ and i want o add a psp joystick and the y and x button and im plannig on using the gba sp board for the remaining button my question is can i use script made for the raspberry pi for that or am i force to make one because i am an absolute noob to coding also can I wire all the control to the same way than the raspberry pi the menu in the diagram stands for the hockey buttons this the diagram that i made from a diagram for raspberrypi Banana pi gameboy sp wiring gpio https://imgur.com/gallery/rhdC24B