Closed voloviq closed 3 years ago
Hello again,
I think I found a solution and understand most of the topics I asked. Tomorrow or later I add which lines needs to be modified at page addressing display mode.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Hello Notro, I would like to sharing with You my experience regarding to display which base on ssd1306 chip with latest kernel 4.11. So first of all I use display from link https://www.aliexpress.com/item/free-shipping-1pcs-0-96-inch-OLED-display-module-128X64-OLED-for-arduino-I2C-IIC-SPI/32596911712.html?spm=2114.01010208.3.28.A2FcZI&ws_ab_test=searchweb0_0,searchweb201602_1_10065_10068_10136_10137_10138_10060_10062_10141_10056_10055_10054_122_10059_10099_10103_10102_10096_10148_10052_10053_10050_10107_10142_10051_10143_10084_10083_10080_10082_10081_10110_10111_10112_10113_10114_10037_10032_10078_10079_10077_10073_10070_10123_10124,searchweb201603_6,afswitch_1,ppcSwitch_5,single_sort_0_default&btsid=61cdea72-4776-4161-988f-f2872d545476&algo_expid=5a019786-da81-4635-886f-615567d420d1-3&algo_pvid=5a019786-da81-4635-886f-615567d420d1 in SPI 4 wire mode. In this kernel I use following dts code
and of course Your driver fb_ssd1306. And now what works and what not works.
Now my investigation.
Command 0x20, 0x01 which switch to vertical continuous mode not working. So I check than 0x20, 0x00 horizontal which not working as well, so finally I check 0x20, 0x02 page addressing mode which works well. Base on it I modify a little bit Your code to
And above code works well, I mean I see proper ascii characters on screen but only vertical (which is not my goal). When I provide from keyboard character I see them on screen perfectly. Unfortunately I'm not able to switch somehow to horizontal mode because I don't know how the data are organized in par->info->screen_buffer buffer.
Of course when I switch in dts fbtft_of_value: width = 128 and fbtft_of_value: height = 64 my code generate overrun error - obvious (this is only testing code, not final).
And now my polite request to You. I have a few question for which I can't find information in net.
Thanks in advanced for any help Best Regards Voloviq