Possible to use code write for raspberry pi on VIM3(using GPIO)?

there is one example by user:birty
but it is for I2C usage…