n0xa / m5stick-nemo

M5 Stick C firmware for high-tech pranks
Other
673 stars 134 forks source link

Creating new option on TV B GONE: Custom Code #121

Closed IsaacLouzeiro closed 3 months ago

IsaacLouzeiro commented 4 months ago

A new option has been added to the TV B GONE feature, allowing for custom IR codes. It is now possible to add new infrared codes contributed by new collaborators or reuse codes from other projects. To add new codes, place the corresponding files in the 'codes' folder and link them to the project. Then, navigate to 'Custom_Ir_Codes.h' for inclusion. After that, go to the 'WORLD_IR_CODES.h' file, and at line 8838, you'll find an array 'const IrCode* const CustomCodes[]'. Inside this array, include the newly created file (based on the provided examples)." I used the repository at DjordjeMandic/Universal-IR-Blaster-TV-B-Gone as a reference.

IsaacLouzeiro commented 4 months ago

I just ran a test; previously, it didn't work on an LG TV. However, after running the customized code (which includes LG TV codes), it was possible to turn the TV on and off normally.

n0xa commented 4 months ago

I dig it. Do you have a good way for average folks to capture new IR codes in a way that's compatible with this new framework? Examples might be a Circuit Playground Express or Flipper Zero that have IR receivers built in, or an IR reciver plugged into the M5Stick. That doesn't need to actually be baked into NEMO yet but One thing I'd love is for it to be easier to capture and add new codes. I'll test this out this weekend if I get time. I'm still in the process of packing and moving.

IsaacLouzeiro commented 4 months ago

This is my second step, using a receiver to capture and send the code to the "Custom" section. I'm diving into this implementation, but for now, all I've got is the good old manual add-on.