Arduino sketch for Stefly stick remote as shown on https://openvario.org/doku.php?id=projects:remote_00:top. You can download schematic and PCB layout under http://ftp.openvario.org/SteFly_Remote.zip
The sketch should be easily adapted for other functions or button layouts.