Fixed some typos

This commit is contained in:
jgromes 2022-10-28 21:03:20 +02:00
parent 1227ea4cd1
commit c9e11d4f37
10 changed files with 23 additions and 23 deletions

View file

@ -95,16 +95,16 @@
#define NOTE_DS8 4978 #define NOTE_DS8 4978
#define REST 0 #define REST 0
// notes of the moledy followed by the duration. // notes of the melody followed by the duration.
// a 4 means a quarter note, 8 an eighteenth , 16 sixteenth, so on // a 4 means a quarter note, 8 an eighteenth , 16 sixteenth, so on
// !!negative numbers are used to represent dotted notes, // !!negative numbers are used to represent dotted notes,
// so -4 means a dotted quarter note, that is, a quarter plus an eighteenth!! // so -4 means a dotted quarter note, that is, a quarter plus an eighteenth!!
int melody[] = { int melody[] = {
// Darth Vader theme (Imperial March) - Star wars // Darth Vader theme (Imperial March) - Star wars
// Score available at https://musescore.com/user/202909/scores/1141521 // Score available at https://musescore.com/user/202909/scores/1141521
// The tenor saxophone part was used // The tenor saxophone part was used
NOTE_A4,-4, NOTE_A4,-4, NOTE_A4,16, NOTE_A4,16, NOTE_A4,16, NOTE_A4,16, NOTE_F4,8, REST,8, NOTE_A4,-4, NOTE_A4,-4, NOTE_A4,16, NOTE_A4,16, NOTE_A4,16, NOTE_A4,16, NOTE_F4,8, REST,8,
NOTE_A4,-4, NOTE_A4,-4, NOTE_A4,16, NOTE_A4,16, NOTE_A4,16, NOTE_A4,16, NOTE_F4,8, REST,8, NOTE_A4,-4, NOTE_A4,-4, NOTE_A4,16, NOTE_A4,16, NOTE_A4,16, NOTE_A4,16, NOTE_F4,8, REST,8,
NOTE_A4,4, NOTE_A4,4, NOTE_A4,4, NOTE_F4,-8, NOTE_C5,16, NOTE_A4,4, NOTE_A4,4, NOTE_A4,4, NOTE_F4,-8, NOTE_C5,16,
@ -112,17 +112,17 @@ int melody[] = {
NOTE_A4,4, NOTE_F4,-8, NOTE_C5,16, NOTE_A4,2,//4 NOTE_A4,4, NOTE_F4,-8, NOTE_C5,16, NOTE_A4,2,//4
NOTE_E5,4, NOTE_E5,4, NOTE_E5,4, NOTE_F5,-8, NOTE_C5,16, NOTE_E5,4, NOTE_E5,4, NOTE_E5,4, NOTE_F5,-8, NOTE_C5,16,
NOTE_A4,4, NOTE_F4,-8, NOTE_C5,16, NOTE_A4,2, NOTE_A4,4, NOTE_F4,-8, NOTE_C5,16, NOTE_A4,2,
NOTE_A5,4, NOTE_A4,-8, NOTE_A4,16, NOTE_A5,4, NOTE_GS5,-8, NOTE_G5,16, //7 NOTE_A5,4, NOTE_A4,-8, NOTE_A4,16, NOTE_A5,4, NOTE_GS5,-8, NOTE_G5,16, //7
NOTE_DS5,16, NOTE_D5,16, NOTE_DS5,8, REST,8, NOTE_A4,8, NOTE_DS5,4, NOTE_D5,-8, NOTE_CS5,16, NOTE_DS5,16, NOTE_D5,16, NOTE_DS5,8, REST,8, NOTE_A4,8, NOTE_DS5,4, NOTE_D5,-8, NOTE_CS5,16,
NOTE_C5,16, NOTE_B4,16, NOTE_C5,16, REST,8, NOTE_F4,8, NOTE_GS4,4, NOTE_F4,-8, NOTE_A4,-16,//9 NOTE_C5,16, NOTE_B4,16, NOTE_C5,16, REST,8, NOTE_F4,8, NOTE_GS4,4, NOTE_F4,-8, NOTE_A4,-16,//9
NOTE_C5,4, NOTE_A4,-8, NOTE_C5,16, NOTE_E5,2, NOTE_C5,4, NOTE_A4,-8, NOTE_C5,16, NOTE_E5,2,
NOTE_A5,4, NOTE_A4,-8, NOTE_A4,16, NOTE_A5,4, NOTE_GS5,-8, NOTE_G5,16, //7 NOTE_A5,4, NOTE_A4,-8, NOTE_A4,16, NOTE_A5,4, NOTE_GS5,-8, NOTE_G5,16, //7
NOTE_DS5,16, NOTE_D5,16, NOTE_DS5,8, REST,8, NOTE_A4,8, NOTE_DS5,4, NOTE_D5,-8, NOTE_CS5,16, NOTE_DS5,16, NOTE_D5,16, NOTE_DS5,8, REST,8, NOTE_A4,8, NOTE_DS5,4, NOTE_D5,-8, NOTE_CS5,16,
NOTE_C5,16, NOTE_B4,16, NOTE_C5,16, REST,8, NOTE_F4,8, NOTE_GS4,4, NOTE_F4,-8, NOTE_A4,-16,//9 NOTE_C5,16, NOTE_B4,16, NOTE_C5,16, REST,8, NOTE_F4,8, NOTE_GS4,4, NOTE_F4,-8, NOTE_A4,-16,//9
NOTE_A4,4, NOTE_F4,-8, NOTE_C5,16, NOTE_A4,2, NOTE_A4,4, NOTE_F4,-8, NOTE_C5,16, NOTE_A4,2,
}; };

View file

@ -1,7 +1,7 @@
/* /*
RadioLib APRS Mic-E Example RadioLib APRS Mic-E Example
This example sends APRS position reports This example sends APRS position reports
encoded in the Mic-E format using SX1278's encoded in the Mic-E format using SX1278's
FSK modem. The data is modulated as AFSK FSK modem. The data is modulated as AFSK
at 1200 baud using Bell 202 tones. at 1200 baud using Bell 202 tones.
@ -45,7 +45,7 @@ AFSKClient audio(&radio, 5);
// create AX.25 client instance using the AFSK instance // create AX.25 client instance using the AFSK instance
AX25Client ax25(&audio); AX25Client ax25(&audio);
// create APRS client isntance using the AX.25 client // create APRS client instance using the AX.25 client
APRSClient aprs(&ax25); APRSClient aprs(&ax25);
void setup() { void setup() {

View file

@ -45,7 +45,7 @@ AFSKClient audio(&radio, 5);
// create AX.25 client instance using the AFSK instance // create AX.25 client instance using the AFSK instance
AX25Client ax25(&audio); AX25Client ax25(&audio);
// create APRS client isntance using the AX.25 client // create APRS client instance using the AX.25 client
APRSClient aprs(&ax25); APRSClient aprs(&ax25);
void setup() { void setup() {

View file

@ -51,7 +51,7 @@ void setup() {
// when using one of the non-LoRa modules // when using one of the non-LoRa modules
// (RF69, CC1101, Si4432 etc.), use the basic begin() method // (RF69, CC1101, Si4432 etc.), use the basic begin() method
// int state = radio.begin(); // int state = radio.begin();
if (state == RADIOLIB_ERR_NONE) { if (state == RADIOLIB_ERR_NONE) {
Serial.println(F("success!")); Serial.println(F("success!"));
} else { } else {
@ -60,7 +60,7 @@ void setup() {
while (true); while (true);
} }
// initalize Pager client // initialize Pager client
Serial.print(F("[Pager] Initializing ... ")); Serial.print(F("[Pager] Initializing ... "));
// base (center) frequency: 434.0 MHz // base (center) frequency: 434.0 MHz
// speed: 1200 bps // speed: 1200 bps
@ -84,7 +84,7 @@ void setup() {
Serial.println(state); Serial.println(state);
while (true); while (true);
} }
} }
void loop() { void loop() {
@ -110,12 +110,12 @@ void loop() {
// print the received data // print the received data
Serial.print(F("[Pager] Data:\t")); Serial.print(F("[Pager] Data:\t"));
Serial.println(str); Serial.println(str);
} else { } else {
// some error occurred // some error occurred
Serial.print(F("failed, code ")); Serial.print(F("failed, code "));
Serial.println(state); Serial.println(state);
} }
} }
} }

View file

@ -57,7 +57,7 @@ void setup() {
while(true); while(true);
} }
// initalize Pager client // initialize Pager client
Serial.print(F("[Pager] Initializing ... ")); Serial.print(F("[Pager] Initializing ... "));
// base (center) frequency: 434.0 MHz // base (center) frequency: 434.0 MHz
// speed: 1200 bps // speed: 1200 bps

View file

@ -51,7 +51,7 @@ void setFlag(void) {
return; return;
} }
// we sent aor received packet, set the flag // we sent or received a packet, set the flag
operationDone = true; operationDone = true;
} }

View file

@ -28,7 +28,7 @@ SX1278 radio = new Module(10, 2, 9, 3);
// or using RadioShield // or using RadioShield
// https://github.com/jgromes/RadioShield // https://github.com/jgromes/RadioShield
//SX1278 fsk = RadioShield.ModuleA; //SX1278 radio = RadioShield.ModuleA;
void setup() { void setup() {
Serial.begin(9600); Serial.begin(9600);
@ -177,7 +177,7 @@ void loop() {
// transmit FM tone at 1000 Hz for 1 second, then 500 Hz for 1 second // transmit FM tone at 1000 Hz for 1 second, then 500 Hz for 1 second
// (DIO2 is connected to Arduino pin 4) // (DIO2 is connected to Arduino pin 4)
// Note: tone() function is not available on ESP32, Arduino Due and CubeCell // Note: tone() function is not available on Arduino Due and CubeCell
// on these platforms, the following will do nothing // on these platforms, the following will do nothing
#if !defined(RADIOLIB_TONE_UNSUPPORTED) #if !defined(RADIOLIB_TONE_UNSUPPORTED)
tone(4, 1000); tone(4, 1000);

View file

@ -98,7 +98,7 @@ void setup() {
// set the function to call when reception is finished // set the function to call when reception is finished
radio.setDio0Action(setRxFlag); radio.setDio0Action(setRxFlag);
// set the function to call when we need to hcange frequency // set the function to call when we need to change frequency
radio.setDio1Action(setFHSSFlag); radio.setDio1Action(setFHSSFlag);
// start listening for LoRa packets // start listening for LoRa packets

View file

@ -110,7 +110,7 @@ void setup() {
// set the function to call when transmission is finished // set the function to call when transmission is finished
radio.setDio0Action(setTxFlag); radio.setDio0Action(setTxFlag);
// set the function to call when we need to hcange frequency // set the function to call when we need to change frequency
radio.setDio1Action(setFHSSFlag); radio.setDio1Action(setFHSSFlag);
// start transmitting the first packet // start transmitting the first packet

View file

@ -65,7 +65,7 @@ void setup() {
while (true); while (true);
} }
#warning "This sketch is just an API guide! Read the note at line 6." #warning "This sketch is just an API guide! Read the note at line 8."
} }
void loop() { void loop() {