I attempted something like this a year or two ago and wish I would have seen this blog then. I didn’t get as far and in the end I just spent the few extra $ and got a qmk compatible keyboard. So much easier to be able to remap and change things through a web browser.