modified PoC HID.cpp from arduino codebase