I am using display example code from zephry repo. ( zephyr/samples/drivers/display at main · zephyrproject-rtos/zephyr) . Connected to a nRF7002 dk , i am using EA W096016-XALW with SSD1306B driver. They communicate through i2c
Here is my device tree
#include <zephyr/dt-bindings/gpio/gpio.h>
/ {
chosen {
zephyr,display = &ssd1306;
};
};
&pinctrl {
i2c1_default: i2c1_default {
group1 {
bias-pull-up;
};
};
i2c1_sleep: i2c1_sleep {
group1 {
low-power-enable;
};
};
};
&i2c1 {
status = "okay";
ssd1306: ssd1306@3c {
compatible = "solomon,ssd1306fb";
reg = <0x3c>;
width = <96>;
height = <16>;
segment-offset = <0>;
page-offset = <4>;
display-offset = <0>;
multiplex-ratio = <15>;
segment-remap;
com-invdir;
prechargep = <0x22>;
reset-gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
};
};
[00:00:00.254,730] <err> ssd1306: Failed to suspend: -5 [00:00:00.254,730] <err> ssd1306: Failed to initialize device! *** Booting nRF Connect SDK v3.3.4-b096d30d893b *** *** Using Zephyr OS v4.3.99-37e6c28576ee *** [00:00:00.254,821] <err> sample: Device ssd1306@3c not found. Aborting sample.