Skip to content

Commit 91fbe96

Browse files
update examples with expected after working
1 parent 858448c commit 91fbe96

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

examples/arduino_multiplier/arduino_multiplier.ino

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
#include <Wire.h>
22

3+
/*
4+
Expected output:
5+
```
6+
HH:MM:SS.mmm -> I2C Multiplier Slave at 0x40
7+
HH:MM:SS.mmm -> RX X=7 → stored R=35
8+
HH:MM:SS.mmm -> TX R=35
9+
```
10+
*/
11+
312
static const uint8_t DEVICE_ADDRESS = 0x40;
413

514
// Holds latest multiplied result (X * 5)

examples/master_multiplier/main.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
#include <unistd.h> // for usleep
33
#include "Wire.h"
44

5+
/*
6+
Expected output:
7+
```
8+
Pi → Nano Multiplier Test
9+
Sending X=7
10+
Received R=35 (expected 35)
11+
```
12+
*/
13+
514
static constexpr uint8_t DEVICE_ADDR = 0x40;
615

716
int main()

0 commit comments

Comments
 (0)