colinodowd
Member
Hello,
I am trying to write data out over a bluetooth connection using the Teensy 3.2 and HC-05. When I use this code, I am able to view the output through the TeraTerm (Putty equivalent) serial monitor.
However, when I use the Serial1 TX/RX pins with the HC-05, I get no output. The TX pin on my HC-05 is going to Pin 0 (RX) and RX Pin of HC-05 is going to Pin 1 (TX).
I am trying to write data out over a bluetooth connection using the Teensy 3.2 and HC-05. When I use this code, I am able to view the output through the TeraTerm (Putty equivalent) serial monitor.
Code:
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println("Hello");
}
However, when I use the Serial1 TX/RX pins with the HC-05, I get no output. The TX pin on my HC-05 is going to Pin 0 (RX) and RX Pin of HC-05 is going to Pin 1 (TX).
Code:
#define HWSERIAL Serial1
void setup() {
HWSERIAL.begin(9600);
}
void loop() {
HWSERIAL.println("Hello");
}