Encoder mapping for Direct I/O connection

I found this utility that replaces the old gpio readall command and works across Raspberry Pi versions.