Created matrix scanner thread macros.
Refactor HID -> FW.