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
94 stars 22 forks source link

Screen autodetection still doesn't work in v1.2c2. #39

Closed TzOk83 closed 4 years ago

TzOk83 commented 4 years ago

Still no-go for screen auto detection with v1.2c2...

kbr-net commented 4 years ago

Could you post the output screen of eeprom_writer.hex please?

TzOk83 commented 4 years ago

Here you have it (this is for ILI9340): obraz

Colors are inverted, I can't pass touchscreen calibration.

On ILI9341 colors are ok, but output is the same, and on ILI9329 colors are ok, but the screen is mirrored vertically.

kbr-net commented 4 years ago

Strange, this looks also like touchscreen is always pressed... Does it work correctly with other arduino applications?

TzOk83 commented 4 years ago

Yes, it works with the example sketches from MCUFriend_kbv, as well as with SDrive MAX v1.2b with swapped X and Y axes in touchscreen (configured like for HX8347G).

XM: PD7 YM: PC2 XP: PC1 YP: PD6 X: ADC1 Y: ADC2

P.S. Comments in touchscreen.c uint16_t readTouch() are misleading...

kbr-net commented 4 years ago

Could you please run this eeprom_writer.hex.gz, and show me the output?

TzOk83 commented 4 years ago

Here you have: obraz

kbr-net commented 4 years ago

Damn, this looks correctly...

But the screen is inverted, so you need ili9340. This was for ili9341...

TzOk83 commented 4 years ago

Maybe this will explain more: obraz obraz obraz obraz

I believe this is not using EEPROM data, as this was executed with EEPROM content from a working v1.2b.

kbr-net commented 4 years ago

Thanks, but this does not matter, the values without touch are necessary.

kbr-net commented 4 years ago

Please try: eeprom_writer.hex.gz

TzOk83 commented 4 years ago

Touch now works, but colors are still in negative if I choose ILI3940. If I choose ILI3941 everything seems to be ok.

kbr-net commented 4 years ago

Hm, ok, then i have mixed something up... I will release a new beta v12c3 soon, please test this again.

TzOk83 commented 4 years ago

v12c3 flashed as ILI3941 seems to work ok, but on boot I have message saying TFT-ID: 3940, yet if I flash from ILI3940 folder I have colors inverted.

Thank you.

kbr-net commented 4 years ago

Ignore it, there are so much display variants in the wild, maybe production failures etc...