Use VSCode and PlatformIO to upload this (through ICSP) to the ATmega328P on the encoder reading board.