Assistance with Infrared Library

In simplest terms I am just trying to figure out how to configure the Arduino Infrared library to use timer0 over timer1 so it will fire Pin3 on my Mega.
I designed and assembled a whole thing without realizing I couldn't assign what pin the render function uses.

I currently have the IR LED assigned to pin 3. It is one of 6 pins available on a port on a shield I have constructed.

If I can simply change the timer, I don't have to dramatically alter my core design.

I have searched. I have found numerous topics stating that it "can" be done. No one ever gets around to explaining how.

The libraries are a labyrinth of files that include each other back and forth.

I cannot find anything that seems like a core setup file that is common among the examples or libraries.

I simply cannot locate where the library defines what timer it plans to use.

*I selected the category because my heavy pin assignment is why I cannot simply swap some things around. It's a pretty complicated gadget.

I have decided against my own desires that unfortunately the best course of action here is to begrudgingly re-assign the pins associated with timer2 to the shield pin currently assigned to pin3.

This is the first planned feature to actually be implemented; I just didn't want to rearrange the numbering of the auxiliary pins as they exist across multiple versions of code and schematics. But editing that sounds a hell of a lot easier if chat GTP got even half of that right.

Arduino front end is breezy, but code that reconfigures hardware level functions feels like the cobwebby basement full of pipes under a spooky old highschool to me.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.