Skip to content

fix: typos raised by new codespell version #1971

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@

\par Description:
\par
Demonstrates the Pythagorean trignometric identity with the use of Cosine, Sine, Vector
Demonstrates the Pythagorean trigonometric identity with the use of Cosine, Sine, Vector
Multiplication, and Vector Addition functions.

\par Algorithm:
\par
Mathematically, the Pythagorean trignometric identity is defined by the following equation:
Mathematically, the Pythagorean trigonometric identity is defined by the following equation:
<pre>sin(x) * sin(x) + cos(x) * cos(x) = 1</pre>
where \c x is the angle in radians.

Expand Down
2 changes: 1 addition & 1 deletion libraries/SoftwareSerial/src/SoftwareSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ inline void SoftwareSerial::recv()
if (inbit) {
rx_buffer |= 0x80;
}
rx_bit_cnt++; // Preprare for next bit
rx_bit_cnt++; // Prepare for next bit
rx_tick_cnt = OVERSAMPLE; // Wait OVERSAMPLE ticks before sampling next bit
}
}
Expand Down
2 changes: 1 addition & 1 deletion libraries/SrcWrapper/src/stm32/uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ extern "C" {
#define DEBUG_UART_BAUDRATE 9600
#endif

/* @brief uart caracteristics */
/* @brief uart characteristics */
typedef enum {
#if defined(USART1_BASE)
UART1_INDEX,
Expand Down
12 changes: 6 additions & 6 deletions libraries/Wire/examples/i2c_scanner/i2c_scanner.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// can be found in many places.
// For example on the Arduino.cc forum.
// The original author is not know.
// Version 2, Juni 2012, Using Arduino 1.0.1
// Version 2, Jun 2012, Using Arduino 1.0.1
// Adapted to be as simple as possible by Arduino.cc user Krodal
// Version 3, Feb 26 2013
// V3 by louarnold
Expand Down Expand Up @@ -47,7 +47,7 @@
If you want to use the two I2Cs simultaneously, create a new instance for the second I2C
TwoWire Wire2(PB11,PB10);
Wire2.begin();

*/


Expand Down Expand Up @@ -76,21 +76,21 @@ void loop() {

Wire.beginTransmission(address);
error = Wire.endTransmission();

if (error == 0) {
Serial.print("I2C device found at address 0x");
if (address < 16)
if (address < 16)
Serial.print("0");
Serial.println(address, HEX);

nDevices++;
}
else if (error == 4) {
Serial.print("Unknown error at address 0x");
if (address < 16)
if (address < 16)
Serial.print("0");
Serial.println(address, HEX);
}
}
}
if (nDevices == 0)
Serial.println("No I2C devices found");
Expand Down