Skip to content

Commit

Permalink
Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pu2clr committed Jul 17, 2024
1 parent 6d59b64 commit 8bb0b26
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions examples/01_SERIAL_MONITOR/C_TX_RDS/C_TX_RDS.ino
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ Author: Ricardo Lima Caratti (PU2CLR) - 2024/06/17
QN8066 tx;

char str[80];
char strSDR[] = "QN8066..";
char strSDR1[] = "QN8066 ";
char strSDR2[] = "LIBRARY.";


void setup() {

Expand Down Expand Up @@ -80,11 +82,19 @@ void setup() {

sprintf(str, "\n\nBroadcasting with RDS...");


analogWrite(9, 50); // It is about 1/5 of the max power. It is between 1 and 1,4 W
}

bool toggle = true;
void loop() {

delay(15000);
if (toggle)
tx.writeTxRDSBuffer(strSDR1);
else
tx.writeTxRDSBuffer(strSDR2);

tx.setTxToggleRDSReady();
toggle = !toggle;

delay(15000);
}

0 comments on commit 8bb0b26

Please sign in to comment.