0.96 I2C OLED & IR TX on Teensy++ 2.0

Status
Not open for further replies.

jcocrafts

New member
Hello everyone! I'm a newbie; please go easy on me :rolleyes: I'm making a macropad with a 0.96 OLED display, initially with an Arduino Pro Micro but now with a Teensy++ 2.0 because I ran out of flash memory in the former. I was planning on adding and IR transmitting capability to the macropad so I could control a cheap IR Lamp in my desk but after some research on the Teensy++ 2.0, I found out that for the IR transmission to work I'd have to use Pin 1, which also happens to be the SDA pin for the OLED. Any advice on how I should proceed? Help is very much appreciated!


Screenshot (21).jpg Screenshot (23).jpg Macropad_2021-Jan-26_06-36-20AM-000_CustomizedView46310483166_png.jpg
 
Sorry, I have never used this library nor a 2++...

But looking at the library: https://arduino-irremote.github.io/Arduino-IRremote/
Or the latest stuff up at: https://github.com/Arduino-IRremote/Arduino-IRremote
It looks like there may be some alternate pins that once can define.

In the library boarddefs.h:
Code:
// Teensy++ 1.0 & 2.0
#elif defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB1286__)
	//#define IR_USE_TIMER1   // tx = pin 25
	#define IR_USE_TIMER2     // tx = pin 1
	//#define IR_USE_TIMER3   // tx = pin 16
Again I have not used this library nor board so not sure if it is as easy as to comment out the pin 1 and uncomment one of the others.
 
Never looked at T_2++ card before - but between that and pjrc.com/teensy/td_libs_IRremote.html that is indeed a problem with single i2c pins and no indicated ability for Alternates?

Does a Teensy_LC have enough pins? It has the Transmit pin #16 safely away from BOTH i2c ports. Costs less, more RAM and even more flash, smaller, faster, going to stay available in production longer ...

<edit>: KurtE did better research ... IR Xmit can be moved.
 
Status
Not open for further replies.
Back
Top