I am trying to attach an RF Transmitter to a ProMicro(see picture). When I use the code below, none of the header pins of the ProMicro are changing voltage on a fixed basis. In other words, it does not appear that the message is reaching any of the output pins of JP6 or JP7 of the ProMicro.
#include <RH_ASK.h>
#include <SPI.h> // Not actually used but needed to compile
RH_ASK driver;
void setup()
{
Serial.begin(9600); // Debugging only
if (!driver.init())
Serial.println("init failed");
}
void loop()
{
const char *msg = "Hello World!";
driver.send((uint8_t *)msg, strlen(msg));
driver.waitPacketSent();
delay(1000);
}
I am assuming that this line of code from RadioHeadsets the output pin of the Aduino.
RH_ASK(uint16_t speed = 2000, uint8_t rxPin = 11, uint8_t txPin = 12, uint8_t pttPin = 10, bool pttInverted = false);
If this is the line of code that needs to be altered, what number do I assign to txPin to make one of the ProMicro Pins send the signal to the transmitter?