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

Screen Colour inverted? atmega328-ili9340 #18

Closed mamejay closed 4 years ago

mamejay commented 4 years ago

I am using the atmega328-ili9340 which is the only one that works with my display. The background is white. When i tested with the other builds the background is black. Is there anyway to invert the colours on this build? Thanks

kbr-net commented 4 years ago

Have you testet the latest beta release 1.2b1? What is wrong with the other builds?

mamejay commented 4 years ago

Yes but it would not work. My screen is a atmega328-ili9340 and the 12b1 version says its for atmega328-hx8347d The other versions are the correct colour but the touch screen does not work

mamejay commented 4 years ago

atmega328-ili9329 works with correct colours but all text is mirrored/back to front.

kbr-net commented 4 years ago

Why are you sure, it is an ili9340? ili9341looks correct, except touchscreen?

mamejay commented 4 years ago

I went through each folder and tested installing. The only version that gave me a readable screen and working touch was the ili9340. ili9341 gives me correct colour but I cannot calibrate the screen and the atmega328-ili932 lets me calibrate but everything is mirrored.

kbr-net commented 4 years ago

What ID is shown shortly after power up?

mamejay commented 4 years ago

Its flashes up so fast but looks like c3c3

kbr-net commented 4 years ago

Weird. If i make a Version with ili9341 screen and ili9340 touch, this would be correct?

mamejay commented 4 years ago

I suspect that should work. I just wrote the ili9341 code back on and can read the ID better. d3d3.

kbr-net commented 4 years ago

mcufriend_kbv says:

if (ret == 0x00D3 || ret == 0xD3D3)

return ret; //16-bit write-only bus

Are you sure it is a 8bit?

mamejay commented 4 years ago

I am not sure. Was just a screen I purchased from Banggood. d3d3 is what shows up on bootup

kbr-net commented 4 years ago

Try this: sdrive-max-v12b2.zip

mamejay commented 4 years ago

Try this: sdrive-max-v12b2.zip

Perfect! That works as expected now. Thank you very much

kbr-net commented 4 years ago

Ok, i am thinking about the final integration, maybe i will add an autodetection for the touchscreen, then you could use the ili9341 in future...

mamejay commented 4 years ago

If you need me to test let me know

kbr-net commented 4 years ago

You are welcome!

kbr-net commented 4 years ago

Please try https://github.com/kbr-net/sdrive-max/releases/download/v12c2/sdrive-max-v12c2.zip

TzOk83 commented 4 years ago

Touchscreen still doesn't work with v1.2c2 and ILI9340 by MCUFriend.

kbr-net commented 4 years ago

Please try https://github.com/kbr-net/sdrive-max/releases/download/v12c2/sdrive-max-v12c2.zip

this version was buggy, please wait for v12c3, and then try this...

mamejay commented 4 years ago

Think this one can be closed. Everything seems to be working correctly