File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed
CMSIS_DSP/examples/arm_sin_cos_example_f32
Wire/examples/i2c_scanner Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 4747
4848 \par Description:
4949 \par
50- Demonstrates the Pythagorean trignometric identity with the use of Cosine, Sine, Vector
50+ Demonstrates the Pythagorean trigonometric identity with the use of Cosine, Sine, Vector
5151 Multiplication, and Vector Addition functions.
5252
5353 \par Algorithm:
5454 \par
55- Mathematically, the Pythagorean trignometric identity is defined by the following equation:
55+ Mathematically, the Pythagorean trigonometric identity is defined by the following equation:
5656 <pre>sin(x) * sin(x) + cos(x) * cos(x) = 1</pre>
5757 where \c x is the angle in radians.
5858
Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ inline void SoftwareSerial::recv()
283283 if (inbit) {
284284 rx_buffer |= 0x80 ;
285285 }
286- rx_bit_cnt++; // Preprare for next bit
286+ rx_bit_cnt++; // Prepare for next bit
287287 rx_tick_cnt = OVERSAMPLE; // Wait OVERSAMPLE ticks before sampling next bit
288288 }
289289 }
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ extern "C" {
3636#define DEBUG_UART_BAUDRATE 9600
3737#endif
3838
39- /* @brief uart caracteristics */
39+ /* @brief uart characteristics */
4040typedef enum {
4141#if defined(USART1_BASE )
4242 UART1_INDEX ,
Original file line number Diff line number Diff line change 66// can be found in many places.
77// For example on the Arduino.cc forum.
88// The original author is not know.
9- // Version 2, Juni 2012, Using Arduino 1.0.1
9+ // Version 2, Jun 2012, Using Arduino 1.0.1
1010// Adapted to be as simple as possible by Arduino.cc user Krodal
1111// Version 3, Feb 26 2013
1212// V3 by louarnold
4747 If you want to use the two I2Cs simultaneously, create a new instance for the second I2C
4848 TwoWire Wire2(PB11,PB10);
4949 Wire2.begin();
50-
50+
5151*/
5252
5353
@@ -76,21 +76,21 @@ void loop() {
7676
7777 Wire.beginTransmission (address);
7878 error = Wire.endTransmission ();
79-
79+
8080 if (error == 0 ) {
8181 Serial.print (" I2C device found at address 0x" );
82- if (address < 16 )
82+ if (address < 16 )
8383 Serial.print (" 0" );
8484 Serial.println (address, HEX);
8585
8686 nDevices++;
8787 }
8888 else if (error == 4 ) {
8989 Serial.print (" Unknown error at address 0x" );
90- if (address < 16 )
90+ if (address < 16 )
9191 Serial.print (" 0" );
9292 Serial.println (address, HEX);
93- }
93+ }
9494 }
9595 if (nDevices == 0 )
9696 Serial.println (" No I2C devices found" );
You can’t perform that action at this time.
0 commit comments