Howto for Raspberry Pi

You can just use Virtual Pins for that: