-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrpi_pico.overlay
48 lines (40 loc) · 1.02 KB
/
rpi_pico.overlay
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include <zephyr/dt-bindings/pinctrl/rpi-pico-rp2040-pinctrl.h>
/ {
aliases {
led0 = &myled0;
led1 = &myled1;
};
leds {
compatible = "gpio-leds";
myled0: led_0 {
gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
};
myled1: led_1 {
gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
};
};
sensors {
compatible = "gpio-leds";
my_us: us0 {
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; // sig
status = "okay";
};
};
};
// TODO add pin to connect master through i2c 1
&pinctrl {
i2c1_default: i2c1_default {
group1 {
pinmux = <I2C1_SDA_P26>, <I2C1_SCL_P27>;
input-enable;
input-schmitt-enable;
bias-pull-up; // ENABLE PULL UP
};
};
};
&i2c1 {
clock-frequency = <I2C_BITRATE_STANDARD>;
status = "okay";
pinctrl-0 = <&i2c1_default>;
pinctrl-names = "default";
};