File tree 4 files changed +10
-10
lines changed
CMSIS_DSP/examples/arm_sin_cos_example_f32
Wire/examples/i2c_scanner
4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 47
47
48
48
\par Description:
49
49
\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
51
51
Multiplication, and Vector Addition functions.
52
52
53
53
\par Algorithm:
54
54
\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:
56
56
<pre>sin(x) * sin(x) + cos(x) * cos(x) = 1</pre>
57
57
where \c x is the angle in radians.
58
58
Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ inline void SoftwareSerial::recv()
283
283
if (inbit) {
284
284
rx_buffer |= 0x80 ;
285
285
}
286
- rx_bit_cnt++; // Preprare for next bit
286
+ rx_bit_cnt++; // Prepare for next bit
287
287
rx_tick_cnt = OVERSAMPLE; // Wait OVERSAMPLE ticks before sampling next bit
288
288
}
289
289
}
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ extern "C" {
36
36
#define DEBUG_UART_BAUDRATE 9600
37
37
#endif
38
38
39
- /* @brief uart caracteristics */
39
+ /* @brief uart characteristics */
40
40
typedef enum {
41
41
#if defined(USART1_BASE )
42
42
UART1_INDEX ,
Original file line number Diff line number Diff line change 6
6
// can be found in many places.
7
7
// For example on the Arduino.cc forum.
8
8
// 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
10
10
// Adapted to be as simple as possible by Arduino.cc user Krodal
11
11
// Version 3, Feb 26 2013
12
12
// V3 by louarnold
47
47
If you want to use the two I2Cs simultaneously, create a new instance for the second I2C
48
48
TwoWire Wire2(PB11,PB10);
49
49
Wire2.begin();
50
-
50
+
51
51
*/
52
52
53
53
@@ -76,21 +76,21 @@ void loop() {
76
76
77
77
Wire.beginTransmission (address);
78
78
error = Wire.endTransmission ();
79
-
79
+
80
80
if (error == 0 ) {
81
81
Serial.print (" I2C device found at address 0x" );
82
- if (address < 16 )
82
+ if (address < 16 )
83
83
Serial.print (" 0" );
84
84
Serial.println (address, HEX);
85
85
86
86
nDevices++;
87
87
}
88
88
else if (error == 4 ) {
89
89
Serial.print (" Unknown error at address 0x" );
90
- if (address < 16 )
90
+ if (address < 16 )
91
91
Serial.print (" 0" );
92
92
Serial.println (address, HEX);
93
- }
93
+ }
94
94
}
95
95
if (nDevices == 0 )
96
96
Serial.println (" No I2C devices found" );
You can’t perform that action at this time.
0 commit comments