NES gamepad read code for Arduino(Atmega328p), and an accompanying uinput driver