kbr-net / sdrive-max

Arduino based Atari 8-bit Floppy Emulator with Touchscreen
http://www.kbrnet.de/projekte/sdrive-max/index.html
GNU General Public License v3.0
92 stars 23 forks source link

HX8347I LCD driver Support #9

Closed iCityWork closed 5 years ago

iCityWork commented 5 years ago

Any chance this can be added? Thanks, Gavin

kbr-net commented 5 years ago

There is already a firmware for it included, have you tried it?

iCityWork commented 5 years ago

I tried the normal burn/install and the display is just blank. Doesn't seem to be supported, is there something else I need to do to make it work? Thanks, Gavin

iCityWork commented 5 years ago

P.S. I am a novice when it comes to Arduino...

kbr-net commented 5 years ago
10180  2018-09-04 23:33   atmega328-hx8347g/eeprom_writer.hex
85231  2018-09-04 23:33   atmega328-hx8347g/SDrive.hex

You tried this files? Maybe there is something broken, because i don't have such a display to always test the changes...

iCityWork commented 5 years ago

Ok, I tried it, both version 0.9 and 0.8 and the display comes on, but everything is in mirror image, inverted, and when I copy SDrive.hex it starts the screen calibration, but it does not respond to touch so I can't calibrate it. Any other ideas? Thank you again, Gavin

https://photos.app.goo.gl/LKfi5X6JnjTkxzMv5

kbr-net commented 5 years ago

Maybe there are more variants of this display. Do you have a datasheet for it, or a pin description?

chuckcaley commented 5 years ago

I have the same problem. it the id is 9595 its a 8347i

kbr-net commented 5 years ago

Yes, this is slightly different, i will see, if i can make one more firmware version for it. But first we need to know, which lines the touchpad uses. Do you have the arduino IDE installed and can try this sketch?

chuckcaley commented 5 years ago

here's a print out of the results Making all control and bus pins INPUT_PULLUP Typical 30k Analog pullup with corresponding pin would read low when digital is written LOW e.g. reads ~25 for 300R X direction e.g. reads ~30 for 500R Y direction

Testing : (A2, D8) = 27 Testing : (A3, D9) = 32 Diagnosing as:- XM,XP: (A2, D8) = 27 YP,YM: (A3, D9) = 32

kbr-net commented 5 years ago

Great, this is the same pinout as for the ILI9341. Now let's find the right datasheet, i can only find one for HX8347A...

kbr-net commented 5 years ago

Let's have a try: https://www.file-upload.net/download-13436151/SDrive.hex.html

chuckcaley commented 5 years ago

Its looking good. V1.0b, Touch screen working :) and all the writing and menu's are the right way :) Will give it a good run through later but sofar everything is working great.

Thanks :) and Thanks again for the fast replys and new screen update.

kbr-net commented 5 years ago

Nice, i used the same orientation settings as for ILI9341. Amazing, how much variants of displays are in the wild... At last, could you check, what is printed as TFT-ID on startup?

chuckcaley commented 5 years ago

It says 9595

kbr-net commented 5 years ago

Thanks, then it seems all working as expected. When everything would be so easy :) But your legwork was essential!

iCityWork commented 5 years ago

Let's have a try: https://www.file-upload.net/download-13436151/SDrive.hex.html

Why is it reporting that this file is spyware?? Just post the new hex file on github please!

kbr-net commented 5 years ago

Sorry, this was a development test version only, and i found no way do add attachements here. Here is the pre-release: https://github.com/kbr-net/sdrive-max/releases/tag/v1.0b2

PS: Spyware on arduino, why not ;)

iCityWork commented 5 years ago

y, this was a development test version only, and i found no way do add attachements here

I assumed, since I started this, you would like me to test, and it was the sketchy site you had it uploaded to that was included spyware. Thanks, Gavin.

kbr-net commented 5 years ago

I used the next best file uploader i have found on google... Ok, if it is working for you too, we can close this issue.

iCityWork commented 5 years ago

FYI, this does, in fact, solve the issue I was having with that particular screen, thank you very much.