Update 'txx.uo/txx.ino'

main
ezn 2 years ago
parent 9aaa0eca9a
commit 2621961c0b

@ -47,7 +47,7 @@ void readCard() {
} }
//Show UID on serial monitor //Show UID on serial monitor
Serial.print("UID tag :"); Serial.print(" --- - ");
String content = ""; // for tag + sound String content = ""; // for tag + sound
String binary = ""; // for binary + LED String binary = ""; // for binary + LED
@ -98,7 +98,7 @@ void readCard() {
} }
for (int b = 0; b < mfrc522.uid.size; b++) { for (int b = 0; b < mfrc522.uid.size; b++) {
Serial.println(mfrc522.uid.uidByte[b], BIN); // Serial.println(mfrc522.uid.uidByte[b], BIN);
char r = mfrc522.uid.uidByte[b]; char r = mfrc522.uid.uidByte[b];
for (int j = 8; j >= 0; j--) { for (int j = 8; j >= 0; j--) {
@ -122,45 +122,45 @@ void readCard() {
const char *Qs[] = { const char *Qs[] = {
"", "",
"", "",
"QRB?:How far are you from my station?", "QRB? `- how far are you from my station?",
"QRL?:Are you busy?", "QRL? `- are you busy?",
"QRZ?:Who is calling me?", "QRZ? `- who is calling me?",
"QRH?:Does my frequency vary?", "QRH? `- does my frequency vary?",
"QRI?:How is the tone of my transmission?", "QRI? `- how is the tone of my transmission?",
"QRK?:What is the readability of my signals?", "QRK? `- what is the readability of my signals?",
"QRM?:Do you have interference?", "QRM? `- do you have interference?",
"QRN?:Are you troubled by static noise?", "QRN? `- are you troubled by static noise?",
"QRQ?:Shall I send faster?", "QRQ? `- shall I send faster?",
"QRT?:Shall I cease or suspend operation?", "QRT? `- shall I cease or suspend operation?",
"QRU?:Have you anything for me?", "QRU? `- have you anything for me?",
"QRV?:Are you ready?", "QRV? `- are you ready?",
"QRX?:Shall I standby?", "QRX? `- shall I standby?",
"QSA?:What is the strength of my signals?", "QSA? `- what is the strength of my signals?",
"QSB?:Are my signals fading?", "QSB? `- are my signals fading?",
"QSD?:Is my keying defective?", "QSD? `- is my keying defective?",
"QSL?:Can you acknowledge receipt?" "QSL? `- can you acknowledge receipt?"
}; };
//Q-code answers/statements //Q-code answers/statements
const char *As[] = { const char *As[] = {
"QRH:Your frequency varies.", "QRH -/ your frequency varies.",
"QRL:I am busy. Please do not interfere.", "QRL -/ i am busy. please do not interfere.",
"QRM:I have interference.", "QRM -/ i have interference.",
"QRM:I am troubled by static noise.", "QRM -/ i am troubled by static noise.",
"QRO:Please increase transmit power.", "QRO -/ please increase transmit power.",
"QRQ:Please send faster.", "QRQ -/ please send faster.",
"QRS:Please send more slowly", "QRS -/ please send more slowly",
"QRT:I am suspending operation.", "QRT -/ i am suspending operation.",
"QRU:I have nothing for you.", "QRU -/ i have nothing for you.",
"QRV:I am ready.", "QRV -/ i am ready.",
"QRX:Please standby.", "QRX -/ please standby.",
"QSB:Your signals are fading.", "QSB -/ your signals are fading.",
"QSD:Your keying is defective.", "QSD -/ your keying is defective.",
"QSK:I can hear you between my signals (while transmitting); break in on my transmission.", "QSK -/ i can hear you between my signals [while transmitting]; break in on my transmission.",
"QSL:I am acknowledging receipt.", "QSL -/ i am acknowledging receipt.",
"QSM:Repeat the last telegram which you sent me", "QSM -/ repeat the last telegram which you sent me",
"QSY:Please change transmission frequency.", "QSY -/ please change transmission frequency.",
"QSZ:Send each word or group twice." "QSZ -/ send each word or group twice."
}; };
void loop() { void loop() {
@ -187,7 +187,7 @@ void loop() {
char c = specQs[a]; char c = specQs[a];
//Serial.print(c); //Serial.print(c);
//Serial.print(" "); //Serial.print(" ");
Serial.print(specQs[a], BIN); //Serial.print(specQs[a], BIN);
//Serial.println(); //Serial.println();
// sonify the bits... // sonify the bits...
@ -219,4 +219,4 @@ void loop() {
} }
} }
delay(500); delay(500);
} }
Loading…
Cancel
Save