We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54bc27d commit bd0f166Copy full SHA for bd0f166
libraries/Wire/examples/i2c_scanner/i2c_scanner.ino
@@ -26,15 +26,22 @@
26
27
28
29
-// Pinmap for Bluepill I2Cs (by Testato)
+// Example pinmap for Bluepill I2Cs (by Testato)
30
//
31
// I2C-1 standard pins: PB7(sda) PB6(scl)
32
// Use it by "Wire" without pin declaration
33
34
// I2C-1 alternative pins: PB9(sda) PB8(scl)
35
-// TwoWire Wire_alt(PB9,PB8);
+// Remap the first I2C befoure call begin
36
+// Wire.setSDA(PB9);
37
+// Wire.setSCL(PB8);
38
+// Wire.begin();
39
-// I2C-2: PB9(sda) PB8(scl)
40
+// I2C-2: PB11(sda) PB10(scl)
41
+// Wire.setSDA(PB11);
42
+// Wire.setSCL(PB10);
43
+//
44
+// If you want to use the two I2Cs simultaneously, create a new instance for the second I2C
45
// TwoWire Wire2(PB11,PB10);
46
47
0 commit comments