Worlds Smallest Pi Based Gaming Device (possibly)
-
- 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)
That would be sweet! Imagine having this as a keychain or some kind of wareable!
- YaYa
- Posts: 1719
- Joined: Mon Jun 26, 2017 12:42 pm
- Location: brittany - France
- Has thanked: 871 times
- Been thanked: 689 times
- Contact:
Re: Worlds Smallest Pi Based Gaming Device (possibly)
I imagine it with a botlle opener instead lol... the perfect buddy hahaha
- 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)
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?
Doesn't happen in megadrive sonic as you can see 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!
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 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!
My first GBZ
http://www.sudomod.com/forum/viewtopic.php?f=43&t=3475
My first MintyPi
http://www.sudomod.com/forum/viewtopic.php?f=32&t=3466
The PiddlyPi! My first self build
http://www.sudomod.com/forum/viewtopic.php?f=13&t=4171
Follow me on Instagram https://www.instagram.com/holydohnut/
http://www.sudomod.com/forum/viewtopic.php?f=43&t=3475
My first MintyPi
http://www.sudomod.com/forum/viewtopic.php?f=32&t=3466
The PiddlyPi! My first self build
http://www.sudomod.com/forum/viewtopic.php?f=13&t=4171
Follow me on Instagram https://www.instagram.com/holydohnut/
- moosepr
- Posts: 524
- 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)
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
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
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
- 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)
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.
I do plan to put this in a (tiny) case, so I'll just design the screen opening to fit the available pixels.
My first GBZ
http://www.sudomod.com/forum/viewtopic.php?f=43&t=3475
My first MintyPi
http://www.sudomod.com/forum/viewtopic.php?f=32&t=3466
The PiddlyPi! My first self build
http://www.sudomod.com/forum/viewtopic.php?f=13&t=4171
Follow me on Instagram https://www.instagram.com/holydohnut/
http://www.sudomod.com/forum/viewtopic.php?f=43&t=3475
My first MintyPi
http://www.sudomod.com/forum/viewtopic.php?f=32&t=3466
The PiddlyPi! My first self build
http://www.sudomod.com/forum/viewtopic.php?f=13&t=4171
Follow me on Instagram https://www.instagram.com/holydohnut/
- 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)
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!
My first GBZ
http://www.sudomod.com/forum/viewtopic.php?f=43&t=3475
My first MintyPi
http://www.sudomod.com/forum/viewtopic.php?f=32&t=3466
The PiddlyPi! My first self build
http://www.sudomod.com/forum/viewtopic.php?f=13&t=4171
Follow me on Instagram https://www.instagram.com/holydohnut/
http://www.sudomod.com/forum/viewtopic.php?f=43&t=3475
My first MintyPi
http://www.sudomod.com/forum/viewtopic.php?f=32&t=3466
The PiddlyPi! My first self build
http://www.sudomod.com/forum/viewtopic.php?f=13&t=4171
Follow me on Instagram https://www.instagram.com/holydohnut/
- kite
- Posts: 972
- Joined: Thu May 12, 2016 4:30 am
- Location: UK
- Has thanked: 246 times
- Been thanked: 361 times
- Contact:
Re:
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?Holydohnut wrote: ↑Mon Sep 04, 2017 5:26 amJust 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!
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
Stock clearance - CLOSED: viewtopic.php?f=38&t=12064
Kite's Mailing List: https://goo.gl/forms/e97uUvPOfUxPWdz82
Kite's FAQ: https://kiteretro.com/faq/
Kite's Mailing List: https://goo.gl/forms/e97uUvPOfUxPWdz82
Kite's FAQ: https://kiteretro.com/faq/
- 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)
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
My first GBZ
http://www.sudomod.com/forum/viewtopic.php?f=43&t=3475
My first MintyPi
http://www.sudomod.com/forum/viewtopic.php?f=32&t=3466
The PiddlyPi! My first self build
http://www.sudomod.com/forum/viewtopic.php?f=13&t=4171
Follow me on Instagram https://www.instagram.com/holydohnut/
http://www.sudomod.com/forum/viewtopic.php?f=43&t=3475
My first MintyPi
http://www.sudomod.com/forum/viewtopic.php?f=32&t=3466
The PiddlyPi! My first self build
http://www.sudomod.com/forum/viewtopic.php?f=13&t=4171
Follow me on Instagram https://www.instagram.com/holydohnut/
- kite
- Posts: 972
- Joined: Thu May 12, 2016 4:30 am
- Location: UK
- Has thanked: 246 times
- Been thanked: 361 times
- Contact:
Re:
RunHolydohnut wrote: ↑Mon Sep 04, 2017 11:51 amHi 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
Code: Select all
sudo find / | grep 'fbtft.ko'
Ps are you using Pi zero or Pi3? I'm pretty sure these were meant for the Pi zero
Stock clearance - CLOSED: viewtopic.php?f=38&t=12064
Kite's Mailing List: https://goo.gl/forms/e97uUvPOfUxPWdz82
Kite's FAQ: https://kiteretro.com/faq/
Kite's Mailing List: https://goo.gl/forms/e97uUvPOfUxPWdz82
Kite's FAQ: https://kiteretro.com/faq/
- 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)
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!
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!
My first GBZ
http://www.sudomod.com/forum/viewtopic.php?f=43&t=3475
My first MintyPi
http://www.sudomod.com/forum/viewtopic.php?f=32&t=3466
The PiddlyPi! My first self build
http://www.sudomod.com/forum/viewtopic.php?f=13&t=4171
Follow me on Instagram https://www.instagram.com/holydohnut/
http://www.sudomod.com/forum/viewtopic.php?f=43&t=3475
My first MintyPi
http://www.sudomod.com/forum/viewtopic.php?f=32&t=3466
The PiddlyPi! My first self build
http://www.sudomod.com/forum/viewtopic.php?f=13&t=4171
Follow me on Instagram https://www.instagram.com/holydohnut/
Who is online
Users browsing this forum: No registered users and 1 guest