View previous topic :: View next topic |
Author |
Message |
daro
Joined: 15 Nov 2010 Posts: 25
|
|
Back to top |
|
|
Netzman
Joined: 25 Nov 2005 Posts: 127 Location: Graz
|
Posted: Tue Nov 27, 2018 11:04 pm Post subject: |
|
|
@hobby this module looks like it has integrated the level shifters, so should be safe running on 5V.
The reset-pin overlapping with CS is not intended, that's an oversight when translating my xmega environment. However, the reset pin assignment is freely choosable by creating the constant before including the library.
The MIKROE Proto Display is the one I've used developing this driver, so I can confirm it works. The D/C pin is used as clock line in serial modes.
@daro quite certainly there's no problem using the display library itself with shared analog/digital lines, but there is no direct support in the library to also use the touch function in such a configuration.
But maybe you can modify Plons' version (shares WR, D/C, D6 and D7 with touch inputs)? Basically you connect the lines to the ADC pins and alternate their configuration between digital outputs for the display and analog inputs for the touch sensing function.
Br _________________ LCD Menu | Proportional Fonts |
|
Back to top |
|
|
hobby
Joined: 12 Apr 2004 Posts: 109 Location: Brussels
|
Posted: Thu Nov 29, 2018 11:34 pm Post subject: |
|
|
Hi,
I have canceled the using chines product, it's not sure. I have not see the level adapter on PCB.
I'm just focusing on the screen of MIKROE.
I use MEGA 2560 with 3V3 power, for testing is more sure.
I use the Software SPI on portk:
I connect K.0 to RST pin on screen (for Reset) with pull down resistor
I connect K.1 to WR pin on screen (for DC)
I connect K.2 to CS pin on screen (for CS)
I connect K.3 to SDI pin on screen (for SDO)
I connect K.4 to RS pin on screen (for SCL)
I connect IM0 to GND
I connect IM1 to IM3 to 3V3
I connect DB0 to DB17 to GND
I connect RD to GND
LEDK to GND
LEDA to 3V3 with resistor.
TE and SDO is open
I have used the example on wiki web site and just remove the picture code for quick compiling.
I attach the example.
I have added small code for blink led portb.7 (testled sub).
The led blink for line 60 after never.
I use bascom 2.0.8.1 (i can down version).
Another thing, I saw that there are 2 versions of the screen:
MI0283QT2 (Rev 1.x) and MI0283QT9A. (Rev 2.0)
I use the Rev 2.0.
Thanks for your help.
Olivier _________________ Thanks
Olivier |
|
Back to top |
|
|
Bernd100
Joined: 12 Mar 2020 Posts: 1 Location: Bayern/Opf.
|
Posted: Thu Mar 12, 2020 10:25 am Post subject: |
|
|
Hallo Netzmann,
wirklich tolle Arbeit. Inzwischen gibt es auch sehr interessante 3,5" Displays mit dem ILI9486 (SPI) die ursprünglich für den Raspberry gedacht waren.
Hast Du evtl. eine Anpassung (Workarround) für diese Displays?
Viele Grüße
Bernd |
|
Back to top |
|
|
Netzman
Joined: 25 Nov 2005 Posts: 127 Location: Graz
|
Posted: Thu Mar 12, 2020 8:35 pm Post subject: |
|
|
Hallo Bernd,
Vielen Dank
Entschuldige dass ich weiter auf Englisch antworte, dann können alle mitlesen.
At a first glance, the ILI9486 seems to be compatible to ILI9341 in most parts. It supports the same interfaces (and some more), they share the same register subset and addresses, memory is organized the same way.
It also includes a PWM generator for backlight control, so that could be offloaded to the 9486.
Surely the initialization sequence with all the power control and gamma settings and, if needed, the constants Lcd_width/Lcd_height must be changed, but the rest should work the same.
You could extract the sequence from those linux drivers (or maybe there is an arduino library?), like I did for the 9341, if you need assistance let me know.
Best regards _________________ LCD Menu | Proportional Fonts |
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Fri Mar 13, 2020 10:34 am Post subject: |
|
|
hi Netzman
Quote: | Entschuldige dass ich weiter auf Englisch antworte, dann können alle mitlesen. |
even if https://www.deepl.com/translator is the best translator
JP _________________ pleasure to learn, to teach, to create |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|