-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template for new driver (support for S1D15E06 LCD) #1172
Comments
This device might be a good candidate: |
I edited u8x8_d_uc1608_dem240064_init_seq procedure according to my lcd driver. Now i want to learn how to send data to LCD ? My sample code is like below. I am sending data with row & column. I believe i must play with msg type U8X8_MSG_DISPLAY_DRAW_TILE right? My sample code:
|
There is basically no nied to use your own functions. The functions are listed here: Lines 597 to 603 in 9ecb87c
The first call should go to "u8x8_cad_StartTransfer". "cad" means "command argument data". StartTransfer/EndTransfer will clear/set the CS flag (SPI) or does similar action on I2C. All in all, your code should look like this: Lines 78 to 101 in 9ecb87c
|
during the init process, i couldn't able to switch D/C pin between command to data (Low Command, High Data). DC pin is always low. I checked it with logic analyzer. Is there any special command to active D/C pins output? Thanks in advance a part from init process: U8X8_CA(0x66, 0x0), /* (15) Display Mode, Parameter 0 (4 Gray Scale) 1 (Binary) / |
I forgot to mention: i tested with U8X8_UC1608_DEM240064_4W_SW_SPI and it is using u8x8_cad_001 as default. Do you have any idea what i am doing wrong? |
There are actually three different kind of bytes which need to be transfered: Commands: DC must be 0 However, in your case i think it is u8x8_cad_001, which means: As mentioned above, there are basically three different functions:
These functions will automatically set the DC line according to the used CAD callback function. The idea of all this is to write the driver code without knowing details on the DC line. Instead only the correct callback function for the DC line has to be selected. |
Thanks for the support :), i am able to create u8x8 graphictest run on display without any problem. I will try u8g2 with it. |
I couldn't figure out how to choose hardware spi pins. I am using STM32F103C8T6 with arduino and this chip has 2 spi. For spi1 it is using 2 different ports. How can i choose which pin to use for MOSI and SCK ? Thanks |
For many uC you can not choose MOSI and SCK. Instead those pins are hard wired in your microcontroller. |
take code from pull request #1190 and create a device for this. I also think the constructor needs to be renamed. |
I can rename it, do you have a suggestion for naming? Thanks |
Excause my delay in working on this. My current personal situation does not allow me to spend much time on u8g2. |
Sorry for delay too. I will make the changes at first chance. Can i compile it in windows with gcc? Do i need a special tool for codebuild.c |
codebuild.c is plain c code, so any compiler should be valid. |
added constructor U8G2_S1D15E06_160100_1_4W_HW_SPI |
Hello,
Thanks for this wonderful library :) I would like to add support for a screen which i removed from an old telephone. It is using chip on glass S1D15E06 with 160x100dots resolution(4 gray scale). Display uses 4 pins Serial Input, Serial Clock, Command/Data and CS pin.
I created a simple test library with arduino and screen is working perfectly with it. Is there any driver template that i can change and add support for this display?
Best Regards
Mustafa
Datasheet for S1D15E06.
https://www.rockbox.org/wiki/pub/Main/DataSheets/epson_s1d15e06.pdf
The text was updated successfully, but these errors were encountered: