-
Posts
17 -
Joined
-
Last visited
-
Days Won
1
Content Type
Forums
Store
Downloads
Blogs
Posts posted by shilow
-
-
Error like this:
C:/ARM/ugfx/drivers/gdisp/ILI9481/gdisp_lld_ILI9481.c: In function 'gdisp_lld_control': C:/ARM/ugfx/drivers/gdisp/ILI9481/gdisp_lld_ILI9481.c:251:6: error: too few arguments to function 'gdisp_lld_init' gdisp_lld_init(); ^ C:/ARM/ugfx/drivers/gdisp/ILI9481/gdisp_lld_ILI9481.c:67:16: note: declared here LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { ^ C:/ARM/ugfx/tools/gmake_scripts/compiler_gcc.mk:242: recipe for target '.build/obj/GFXLIB/drivers/gdisp/ILI9481/gdisp_lld_ILI9481.o' failed cs-make.EXE: *** [.build/obj/GFXLIB/drivers/gdisp/ILI9481/gdisp_lld_ILI9481.o] Error 1
Patch:
diff --git a/drivers/gdisp/ILI9481/gdisp_lld_ILI9481.c b/drivers/gdisp/ILI9481/gdisp_lld_ILI9481.c index bd637f0..0f8b6c4 100644 --- a/drivers/gdisp/ILI9481/gdisp_lld_ILI9481.c +++ b/drivers/gdisp/ILI9481/gdisp_lld_ILI9481.c @@ -248,7 +248,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { write_reg(g, 0x0010, 0x0000); /* leave sleep mode */ release_bus(g); if (g->g.Powermode != powerSleep) - gdisp_lld_init(); + gdisp_lld_init(g); break; case powerSleep: acquire_bus(g);
-
corrected version
-
Hi everyone!
Through the efforts of a group of comrades present driver for display of phone Nokia 1616.
Based on the work of axillent[dog]gmail[dot]com (http://radiokot.ru/articles/53/)
Many thanks to the help of Federico Reds .
-
Shilow, I've reviewed and added your driver to the repository. Can you please get to the latest master and try the integrated driver out and report any issues? I assume that this driver now works with all four orientation modes.
Yes, this driver is working properly.
-
Shilow, I've reviewed and added your driver to the repository. Can you please get to the latest master and try the integrated driver out and report any issues? I assume that this driver now works with all four orientation modes.
OK, I'll do it in a few days.
I have plans for the driver for LCD of Nokia 1616, controller chip -- SPFD54124B.
-
in my sample project http://ugfx.org/forum/download/file.php?id=23 working driver for my LCD with LGDP4532 chip.
it would be nice if someone else checked it either.
-
changes are needed not only in the initialization procedure, but also in the functions to rotate the screen.
variable Devicecode need to do a global?
in any case, it should make the programmer, not the hobbyist :-)
-
Glad to hear that you got it working! Shilow, could you give the driver attached in xlh1460s post a final try? We'll replace the one in the repository then.
to successfully launch I had to change the reset procedure and add the initialization section for "Devicecode == 4532"
screen rotation function did not work correctly
image has been mirrored
I attach a simple demonstration project with a working driver for my LCD.
-
Glad to hear that you got it working! Shilow, could you give the driver attached in xlh1460s post a final try? We'll replace the one in the repository then.
Yes, I'll check it out today.
-
I needed to adjust some of the include statements for incorrect path and non-existent header files (driver.h)
it is standart include in gdisp_lld_ILI9325.c
#include "src/gdisp/driver.h"
that refers to the file in ugfx/src/gdisp/
-
I think I found the reason.
Revised driver:
-
I'm a bit confused - Does this mean that you got it working?
Yes, in portrait mode, it works.
In landscape mode also works, but the image is upside down.
Did you suggest what else can I try?
-
Hi!
Helped:
GDISP_REG = 0x0003;
GDISP_RAM = 0x1030; // for GDISP_DEFAULT_ORIENTATION == GDISP_ROTATE_PORTRAIT
immediately after
gfxInit();
with GDISP_ROTATE_LANDSCAPE and 0x1038 -- image flipped vertically.
gdispSetOrientation() -- spoils the imageThis happens sometimes. Please try the following three things in that order:- Try all four orientations using gdispSetOrientation().
it really ili9325It already occurred several times that suppliers used different versions of the ILI93xx chip. For example, some claimed to sell ILI9325 displays but what was really delivered was an ILI9320. Please make sure that you got the correct one. You can read out the display controllers revision register (datasheet).Usually you get some demo code shipped with the display. If none of the above lead to a positive result, please swap the initialisation code inside /drivers/gdisp/ILI9325/gdisp_lld_ILI9325.c with the one from the demo code. Look for the gdisp_lld_init() function.initialisation code the same -- one to one.
One more thing: How does your hardware setup look like? Is it a PCB or some breadboard setup? I'm curious that the filling options appear to work correctly. This could mean that there is noise on the bus. Are you using SPI or FSMC? You could also try to lower your bus frequency should the points above not work.~ Tectu
my board HY-STM32 -- its a development board, display connetcted via FSMC.
-
Hi!
I try to connect devboard HY-STM32F103VE to µGFX with ChibiOS/RT. This board contains LCD with ILI9325 controller.
To some extent, I got it.
I use current µGFX from GIT.
The Startup logo shows OK, but my graphics and text -- no:
documents-export-2013-07-29.zipHY-STM32F103VE.7z[/attachment]
What could be the problem? Perhaps there is another controller installed?
-
Thank you very much for sharing your work! It will be reviewed and eventually included into the repository.
Why does the output only work in main()? Did you enable the MULTITHREAD macro?
my knowledge does not allow this to determine.
possible problem in the stack size.
One more question: Why do you directly access the registers of the SPI peripheral? You shouldn't mix the ChibiOS/RT HAL with your own implementation as this can cause problems.For proper output of commands/data on LSD, need hard synchronization of the CS, DC and outgoing data.
DMA mode used ChibiOS does not allow it.
Actually, I was able to do this using DMA, but the output baud LCD was very low.
-
Hi!
I bought this display
http://www.banggood.com/2_2-Inch-Serial ... 12854.html
and was able to run it.
To demonstrate the operation of the display I used the sample project for Chibios/RT and STM32VLDiscovery.
Output to the screen only works in main()
3.2" LCD 480x320 ILI9481
in User Projects
Posted
Im bye LCD like this
Package has label "ILI9481"
Original driver from uGFX not work properly.
There small simple project with properly work driver.
Some photos: