一、menuconig配置
Device Drivers
----------->Graphics support
------>Frame buffer Devices
------>Support for frame buffer devices --->
--->Solomon SSD1306 framebuffer support
二、修改设备树
&i2c3 {
clock-frequency = <400000>;
pinctrl-names = "default";
status = "okay";
ssd1306: oled@3c {
compatible = "solomon,ssd1306fb-i2c";
reg = <0x3c>;
//pwms = <&pwm 4 3000>;
//reset-gpios = <&gpio2 7>;
solomon,width = <128>;
solomon,height = <64>;
solomon,page-offset = <0>;
//solomon,com-lrremap;
solomon,com-invdir;
//solomon,com-offset = <0>;
//solomon,lookup-table = /bits/ 8 <0x3f 0x3f 0x3f 0x3f>;
};
};