I have probably missed the obvious, but after a few hours this has all turned to mush to me. I have looked at this code and can't understand why pin 11 will not change states in the software I have attached. I can run it in a simple loop program on the same controller with the same hardware setup and it works just fine.
I am using a Pro Mini if that helps.
You will note that I have commented out everything else in the program loop just to test this output problem.
Additionally I have a .96" OLED and can't use the command code that allows me to over write a line of text with something else. I tried using oled.setTextColor(0xFFFF, 0) but it's not in the header library. Any recommendations?
I have in my notes for one of my projects that VirtualWire takes over pins 9 and 10 and that you must specify both the transmit and receive pins even if you are not transmitting.
"4.1 vw_set_tx_pin
extern void vw_set_tx_pin(uint8_t pin);
Set the digital IO pin to use for transmit data. Defaults to 12.
4.2 vw_set_rx_pin
extern void vw_set_rx_pin(uint8_t pin);
Set the digital IO pin to use for receive data. Defaults to 11."
"Caution: VirtualWire takes over Arduino Timer1, and this will affect the PWM capabilities
of the digital pins 9 and 10."
You were dead on!! I had to assign the transmit and the receive pins even though I only have the transmitter on this end. I have done this before using an uno and didn't seem to have this problem. Thanks for your response. Any idea on the OLED problem?