File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 15
15
void setup ()
16
16
{
17
17
Wire.begin (); // join i2c bus (address optional for master)
18
- Serial1 .begin (9600 ); // start serial for output
18
+ Serial .begin (9600 ); // start serial for output
19
19
}
20
20
21
21
void loop ()
@@ -25,8 +25,8 @@ void loop()
25
25
while (Wire.available ()) // slave may send less than requested
26
26
{
27
27
char c = Wire.read (); // receive a byte as character
28
- Serial1 .print (c); // print the character
29
- Serial1 .println ();
28
+ Serial .print (c); // print the character
29
+ Serial .println ();
30
30
31
31
}
32
32
Original file line number Diff line number Diff line change 15
15
void setup ()
16
16
{
17
17
Wire.begin (); // join i2c bus (address optional for master)
18
- Serial1 .begin (9600 );
18
+ Serial .begin (9600 );
19
19
}
20
20
21
21
byte x = 1 ;
@@ -26,9 +26,9 @@ void loop()
26
26
// Wire.write("x is "); // sends five bytes
27
27
Wire.write (x); // sends one byte
28
28
int result = Wire.endTransmission (); // stop transmitting
29
- Serial1 .println ();
30
- Serial1 .print (" x = " );
31
- Serial1 .print (x);
29
+ Serial .println ();
30
+ Serial .print (" x = " );
31
+ Serial .print (x);
32
32
x++;
33
33
delay (500 );
34
34
}
You can’t perform that action at this time.
0 commit comments