zaher Posted August 31, 2017 Report Share Posted August 31, 2017 Hi, I have just managed to integrate the library and compile successfully in Keil uVision 5. My OLED LCD is connected through the 4-wire SPI bus, and I can initialize the LCD and send it commands and data without any problem. I referred to the online documentation, driver templates, and have already got familiar with the structure of the library. However, when it comes to the driver of my LCD itself, I just don't understand where to start and what to look at first. I know that the SSD1322 is not supported by uGFX yet, but it seems someone else had successfully written a driver based on the example/template provided for the SSD1306. For me, I don't mind taking the same approach in writing the driver for my SSD1322 OLED, but I would appreciate any input, guidance, you name it, so I can get where I want faster. in the drivers/gdisp/SSD1306 folder, there are 5 files. Aside from the header file that provides prototypes for functions and variables used by the driver, SSD1306.h, what the other files do and how to customize/add them to the project? Is there any limit to the LCD size/resolution when using the SSD1322 controller with uGFX? Mine is 256x64. By the way, I'm running the bare metal version of the library and I have already enabled the corresponding defines in the gfxconf.h file. Thanks in advance! Zaher Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted September 1, 2017 Report Share Posted September 1, 2017 Hi, Copying the existing SSD1306 driver is definitely the right thing to do. Maybe it would also be a good idea to ask @Andrey_13 to share his working SSD1322 driver. Explanation of the files in the driver directory: SSD1306.h: A file containing helper macros to access registers board_SSD1306_template.h: A template for the board file. The user of the driver needs to copy this file to his project (or board directory) and implement the functions inside. This is documented in the µGFX documentation. driver.mk: The makefile that includes the necessary files and paths in the main µGFX Makefile (it appends to the GFXINC and GFXSRC variables). gdisp_lld_ssd1306.c: The file with the actual driver implementation. gdisp_lld_config.h: Driver specific configuration options readme.txt: A readme file. Don't hesitate to ask if you have any specific questions. Link to comment Share on other sites More sharing options...
Andrey_13 Posted September 1, 2017 Report Share Posted September 1, 2017 Hello dear Friends. I am sorry by my very bad english :-). This my driver for ssd1322. Refresh all display. I use STM32F103 and DMA. ugfx.zip Link to comment Share on other sites More sharing options...
inmarket Posted September 1, 2017 Report Share Posted September 1, 2017 Thankyou for posting your driver. It is appreciated. When I get a few moments I will look at adding it into the official repository. Link to comment Share on other sites More sharing options...
Andrey_13 Posted September 2, 2017 Report Share Posted September 2, 2017 Thank you very much for your work. Link to comment Share on other sites More sharing options...
inmarket Posted September 11, 2017 Report Share Posted September 11, 2017 This driver has now been officially added to the repository. Link to comment Share on other sites More sharing options...
Andrey_13 Posted September 11, 2017 Report Share Posted September 11, 2017 8 hours ago, inmarket said: This driver has now been officially added to the repository. Thank You very much !. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now