Page 3 of 5

Re: Worlds Smallest Pi Based Gaming Device (possibly)

Posted: Thu Aug 10, 2017 3:03 pm
by username 123
That would be sweet! Imagine having this as a keychain or some kind of wareable!

Re: Worlds Smallest Pi Based Gaming Device (possibly)

Posted: Thu Aug 10, 2017 3:08 pm
by YaYa
I imagine it with a botlle opener instead lol... the perfect buddy hahaha :lol:

Re: Worlds Smallest Pi Based Gaming Device (possibly)

Posted: Sun Sep 03, 2017 3:14 pm
by Holydohnut
Hi moosepr. My tiny screen just turned up, and I've sort of got it working. I have got a couple of questions though if you wouldn't mind. Firstly, I've tried both drivers you mention, (adding the height and width settings to the fb_st7735r) and both work, but leave me with a couple of lines of "corruption" across the bottom and right of the 's reen. (See pic) Is there a way to get rid of this?
20170903_214010.jpg
20170903_214010.jpg (2.69 MiB) Viewed 9296 times
Also, as you can see, some of the emulators are not using all of the screen. I've tried altering the individual settings, but none of the options are for a square screen (surprising no one) did you manually alter each emulator, or is there another setting you used?

Doesn't happen in megadrive sonic as you can see
20170903_214430.jpg
20170903_214430.jpg (2.68 MiB) Viewed 9296 times
Finally, (and this is just an aside) did you alter the retropie theme at all? I've installed the always superb GBZ35 but wondered if you knew anything even more suited? If not, I may have a crack at making my own and will upload it here.

Many thanks!

Re: Worlds Smallest Pi Based Gaming Device (possibly)

Posted: Mon Sep 04, 2017 12:46 am
by moosepr
Always happy to help! I think there are some screens knocking about that seemingly just put garbage on there whatever you try. I think they have v1.1 on the PCB. I don't think it's the panel itself, I think it's down to the way the PCB is designed. I actually spoke to Nitro about the issues I had, and he mentioned the fbflex driver that was supposed to be a single driver to can't any screen kinda thing. I had a quick go but never actually got that to work, but you might have success...

https://github.com/notro/fbtft/issues/453

Re: Worlds Smallest Pi Based Gaming Device (possibly)

Posted: Mon Sep 04, 2017 12:58 am
by Holydohnut
Cheers! I had a play with the flex driver on some of my other screens bit like you, never had any success. It's a good idea in theory!

I do plan to put this in a (tiny) case, so I'll just design the screen opening to fit the available pixels.

Re: Worlds Smallest Pi Based Gaming Device (possibly)

Posted: Mon Sep 04, 2017 5:26 am
by Holydohnut
Just followed your link and it does indeed seem to be a similar issue, with the exception that I'm not currently using the rotate option. The ST7735r driver already had the screen the way round that I wanted. (The other driver was rotated 180) it's not a massive loss I guess. But when you only have 128x128, every pixel counts! :-D

Re:

Posted: Mon Sep 04, 2017 6:37 am
by kite
Holydohnut wrote:
Mon Sep 04, 2017 5:26 am
Just followed your link and it does indeed seem to be a similar issue, with the exception that I'm not currently using the rotate option. The ST7735r driver already had the screen the way round that I wanted. (The other driver was rotated 180) it's not a massive loss I guess. But when you only have 128x128, every pixel counts! :-D
I had this issue with my 160x128 ST7735r LCD.. I had to put a code fix to fbtft_device.c (which I haven't put in a pull request for, bad me..) .. maybe you could try out my compiled modules and see if it helps you?

The issue IS the LCD, it is because the driver chip is attached to different rows/columns by an offset to the LCD so the whole window is 'shifted' by 2x by 1x pixels.. my code fix is to shift it by the correct amount depending on screen rotation! You will need to provide the custom display X and Y as this is defaulting to 160x128..

1. Download this: https://www.dropbox.com/s/f6batd55nnb7t ... s.zip?dl=0
2. Extract the modules into /modules/lib/4.4.50+/extra/* (you should probably only need fbtft_device.ko and fbtft.ko, but I would back up all your existing modules and just replace all of them)
3. Edit your fbtft.conf and change anything as necessary.. basically the ONLY important thing is I added "name=Z180SN009" so if you're testing from the command line, just use that!

Code: Select all

# /etc/modprobe.d/fbtft.conf
options fbtft_device name=Z180SN009 speed=36000000 debug=0 gpios=reset:25,dc:24,led:6 rotate=270 fps=60
Let me know if that helps or not.. I'm waiting on a 128x128 LCD and if I have the same issue I'll reply with a fix

Re: Worlds Smallest Pi Based Gaming Device (possibly)

Posted: Mon Sep 04, 2017 11:51 am
by Holydohnut
Hi Kite. Thanks for this. Do you mean /lib/modules/4.4.50+ ? As I don't have an extra folder in there at present. I tried copying the whole folder across, but then the amendment to the config file stops the driver from loading at all. I also have a /lib/modules/4.4.50-v7+ folder which does have an extra folder, but it only contains one file called xpad.ko

Re:

Posted: Mon Sep 04, 2017 1:37 pm
by kite
Holydohnut wrote:
Mon Sep 04, 2017 11:51 am
Hi Kite. Thanks for this. Do you mean /lib/modules/4.4.50+ ? As I don't have an extra folder in there at present. I tried copying the whole folder across, but then the amendment to the config file stops the driver from loading at all. I also have a /lib/modules/4.4.50-v7+ folder which does have an extra folder, but it only contains one file called xpad.ko
Run

Code: Select all

sudo find / | grep 'fbtft.ko'
and put it in the directory that the search finds, this was quite a while ago that I built that and can't remember off the top of my head. The errors loading will be because it's not actually using my modules :)

Ps are you using Pi zero or Pi3? I'm pretty sure these were meant for the Pi zero

Re: Worlds Smallest Pi Based Gaming Device (possibly)

Posted: Mon Sep 04, 2017 1:49 pm
by Holydohnut
Hey kite. Ignore the above. I found the files in /lib/modules/4.4.50+/kernel/drivers/staging/fbtft. I copied the new ones you supplied across and hey presto, the junk at the side of the screen is gone! There are still.... 2? Lines of junk at the bottom though so then I thought I'd try a rotate and sure enough, when rotated 90 degrees, the corruption is gone completely!

So that means I'll have to have the pins at the top of the screen, rather than the bottom, but it's a small price to pay! Thank you so much for your help!

Edit. As I was writing this, you were also replying! So thank you, and apologies for the crossed wires!