test para compatibilidad de oled
This commit is contained in:
parent
e0124e5e02
commit
4d363ce3df
3 changed files with 40 additions and 0 deletions
21
config/oled.dtsi
Normal file
21
config/oled.dtsi
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
&i2c0 {
|
||||
status = "okay";
|
||||
sda-pin = <39>; // nice!nano pin 107
|
||||
scl-pin = <34>; // nice!nano pin 102
|
||||
|
||||
oled: ssd1306@3c {
|
||||
compatible = "solomon,ssd1306fb";
|
||||
reg = <0x3c>;
|
||||
label = "DISPLAY";
|
||||
width = <128>;
|
||||
height = <32>;
|
||||
segment-offset = <0>;
|
||||
page-offset = <0>;
|
||||
display-offset = <0>;
|
||||
multiplex-ratio = <31>;
|
||||
com-invdir;
|
||||
segment-remap;
|
||||
com-sequential;
|
||||
prechargep = <0x22>;
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue