Worlds Smallest Pi Based Gaming Device (possibly)

Want to show off your own project? Want to keep a build log of it? Post it here!
username 123
Posts: 134
Joined: Thu Jun 09, 2016 5:45 pm
Has thanked: 33 times
Been thanked: 29 times

Re: Worlds Smallest Pi Based Gaming Device (possibly)

Post by username 123 » Thu Aug 10, 2017 3:03 pm

That would be sweet! Imagine having this as a keychain or some kind of wareable!

User avatar
YaYa
Posts: 1719
Joined: Mon Jun 26, 2017 12:42 pm
Location: brittany - France
Has thanked: 871 times
Been thanked: 688 times
Contact:

Re: Worlds Smallest Pi Based Gaming Device (possibly)

Post by YaYa » Thu Aug 10, 2017 3:08 pm

I imagine it with a botlle opener instead lol... the perfect buddy hahaha :lol:
Follow me on instagram Image

User avatar
Holydohnut
Posts: 194
Joined: Wed May 10, 2017 2:02 pm
Has thanked: 29 times
Been thanked: 68 times

Re: Worlds Smallest Pi Based Gaming Device (possibly)

Post by Holydohnut » Sun Sep 03, 2017 3:14 pm

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 2964 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 2964 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!

User avatar
moosepr
Posts: 523
Joined: Wed Jan 25, 2017 6:18 am
Has thanked: 69 times
Been thanked: 241 times
Contact:

Re: Worlds Smallest Pi Based Gaming Device (possibly)

Post by moosepr » Mon Sep 04, 2017 12:46 am

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
Get a small cheep LCD in your project https://www.sudomod.com/forum/viewtopic.php?f=22&t=2312
Wrap it all round a battery https://www.sudomod.com/forum/viewtopic.php?f=13&t=2292
Or use a custom PCB to make it really small https://www.sudomod.com/forum/viewtopic.php?f=13&t=2512
or make it really really really really tiny!! https://www.sudomod.com/forum/viewtopic.php?f=13&t=2919

User avatar
Holydohnut
Posts: 194
Joined: Wed May 10, 2017 2:02 pm
Has thanked: 29 times
Been thanked: 68 times

Re: Worlds Smallest Pi Based Gaming Device (possibly)

Post by Holydohnut » Mon Sep 04, 2017 12:58 am

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.

User avatar
Holydohnut
Posts: 194
Joined: Wed May 10, 2017 2:02 pm
Has thanked: 29 times
Been thanked: 68 times

Re: Worlds Smallest Pi Based Gaming Device (possibly)

Post by Holydohnut » 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

User avatar
kite
Posts: 860
Joined: Thu May 12, 2016 4:30 am
Location: UK
Has thanked: 227 times
Been thanked: 289 times
Contact:

Re:

Post by kite » Mon Sep 04, 2017 6:37 am

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

User avatar
Holydohnut
Posts: 194
Joined: Wed May 10, 2017 2:02 pm
Has thanked: 29 times
Been thanked: 68 times

Re: Worlds Smallest Pi Based Gaming Device (possibly)

Post by Holydohnut » 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

User avatar
kite
Posts: 860
Joined: Thu May 12, 2016 4:30 am
Location: UK
Has thanked: 227 times
Been thanked: 289 times
Contact:

Re:

Post by kite » Mon Sep 04, 2017 1:37 pm

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

User avatar
Holydohnut
Posts: 194
Joined: Wed May 10, 2017 2:02 pm
Has thanked: 29 times
Been thanked: 68 times

Re: Worlds Smallest Pi Based Gaming Device (possibly)

Post by Holydohnut » Mon Sep 04, 2017 1:49 pm

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!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest