Skip to content

Commit 507f4b3

Browse files
ananglcarlescufi
authored andcommitted
samples: drivers: w1: Enable arduino_i2c and arduino_serial explicitly
This sample uses the arduino_i2c and arduino_serial DT nodes, so it should enable them explicitly, not assume they will be enabled by default for a given board. Signed-off-by: Andrzej Głąbek <[email protected]>
1 parent 569136a commit 507f4b3

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

samples/drivers/w1/scanner/ds2484.overlay

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
&arduino_i2c {
2+
status = "okay";
3+
24
w1: w1@18 {
35
compatible = "maxim,ds2484";
46
reg = <0x18>;

samples/drivers/w1/scanner/ds2485.overlay

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
&arduino_i2c {
2+
status = "okay";
3+
24
w1: w1@40 {
35
compatible = "maxim,ds2485";
46
reg = <0x40>;

samples/drivers/w1/scanner/w1_serial.overlay

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
&arduino_serial {
2+
status = "okay";
3+
24
w1: w1 {
35
compatible = "zephyr,w1-serial";
46
};

0 commit comments

Comments
 (0)