Using IR remote to change car mode

it's often less time consuming to develop off-target.

i suggest to develop code to affect the operations you want using the serial interface

separately develop code that can receive and interpret IR codes

then combine the two to use IR code to exercise the operations verified using the serial I/F