https://github.com/fredsa/tvremote.git
Basic example using a microcontroller as an IR blaster. Mine are from Adafruit.
IR_SEND_PIN to be the output pin you're using.IR_ADDRESS for the TV you are using.IR_REPEATS if needed for your TV.IR_REPEATS if needed for your TV.IR_NUMBER_OF_BITS as appropriate for your TV.IR_MIN_DELAY_MS as appropriate for your TV.20 to send hex code 0x20 (menu, see admiral.h),
or 121212 to send 0x12 (channel down) three times.