Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
dmg-zero [2016/07/16 12:29]
sschueller
dmg-zero [2016/08/24 08:47]
sschueller [Display Modification to run on 5V]
Line 5: Line 5:
   * Common ground button board - [[http://​www.sudomod.com/​forum/​viewtopic.php?​f=3&​t=325|Buy at sudomod]] - [[https://​github.com/​1461748123/​Gameboy-Zero-PCB|PCB Source]]   * Common ground button board - [[http://​www.sudomod.com/​forum/​viewtopic.php?​f=3&​t=325|Buy at sudomod]] - [[https://​github.com/​1461748123/​Gameboy-Zero-PCB|PCB Source]]
   * SNES Controller [[http://​www.aliexpress.com/​item/​1-x-Retro-Super-for-Nintendo-SNES-USB-Controller-for-PC-for-MAC-Controllers-SEALED/​2051991309.html|Buy]]   * SNES Controller [[http://​www.aliexpress.com/​item/​1-x-Retro-Super-for-Nintendo-SNES-USB-Controller-for-PC-for-MAC-Controllers-SEALED/​2051991309.html|Buy]]
-  * Pi Touch TFT 3.5 LCD (320x480) [[http://​www.aliexpress.com/​item/​Free-shipping-LCD-module-Pi-TFT-3-5-inch-320-480-Touchscreen-Display-Module-TFT-for/​32551712173.html|Buy]]+  * <del>Pi Touch TFT 3.5 LCD (320x480) [[http://​www.aliexpress.com/​item/​Free-shipping-LCD-module-Pi-TFT-3-5-inch-320-480-Touchscreen-Display-Module-TFT-for/​32551712173.html|Buy]]</​del>​ 
 +  * 3.5" TFT LCD Color Screen [[http://​www.aliexpress.com/​item/​Newest-Special-Offer-3-5-TFT-LCD-Color-Screen-Monitor-For-Car-Rear-Reverse-Rearview-Backup/​32596076914.html?​spm=2114.13010608.0.104.xDjrkF|Buy]]
   * USB Wifi Adapter [[http://​www.aliexpress.com/​item/​wifi-adapter-EDUP-N8508GS-gold-mini-USB-wireless-network-card-for-raspberry-pi-Model-B-plus/​32252694474.html|Buy]]   * USB Wifi Adapter [[http://​www.aliexpress.com/​item/​wifi-adapter-EDUP-N8508GS-gold-mini-USB-wireless-network-card-for-raspberry-pi-Model-B-plus/​32252694474.html|Buy]]
   * DMG case [[http://​www.aliexpress.com/​item/​For-Gameboy-Game-Boy-Original-Console-Shell-Case-Housing-w-Screen-W-Screwdriver/​32551491861.html|Buy]]   * DMG case [[http://​www.aliexpress.com/​item/​For-Gameboy-Game-Boy-Original-Console-Shell-Case-Housing-w-Screen-W-Screwdriver/​32551491861.html|Buy]]
Line 20: Line 21:
  
  
 +===== Display Modification to run on 5V =====
 +Connect Pin 3 on IC to 5+ directly
 +
 +{{::​img_20160806_141048.jpg?​500|}}
 +
 +{{::​dsc_0689.jpg?​500|}}
 ===== LCD Setup ===== ===== LCD Setup =====
 <​code>​ <​code>​
Line 36: Line 43:
  
 https://​www.raspberrypi.org/​forums/​viewtopic.php?​f=45&​t=137149 https://​www.raspberrypi.org/​forums/​viewtopic.php?​f=45&​t=137149
-<code /​boot/​config.txt>​+<​code ​bash /​boot/​config.txt>​
  
 dtparam=spi=on dtparam=spi=on
 dtoverlay=waveshare35a dtoverlay=waveshare35a
 </​code>​ </​code>​
-<code /​boot/​cmdline.txt>​+<​code ​bash /​boot/​cmdline.txt>​
  
 fbcon=map:1 fbcon=map:1
 </​code>​ </​code>​
-<code /​boot/​config.txt>​+<​code ​bash /​boot/​config.txt>​
 dtparam=i2c_arm=on dtparam=i2c_arm=on
 hdmi_force_hotplug=1 hdmi_force_hotplug=1
Line 54: Line 61:
 dtoverlay=waveshare35a:​rotate=270,​swapxy=1,​speed=41000000,​fps=50 dtoverlay=waveshare35a:​rotate=270,​swapxy=1,​speed=41000000,​fps=50
 </​code>​ </​code>​
-<​code ​ /​etc/​udev/​rules.d/​95-ads7846.rules>​+<​code ​bash  /​etc/​udev/​rules.d/​95-ads7846.rules>​
  
 SUBSYSTEM=="​input",​ KERNEL=="​event[0-9]*",​ ATTRS{name}=="​ADS7846*",​ SYMLINK+="​input/​touchscreen"​ SUBSYSTEM=="​input",​ KERNEL=="​event[0-9]*",​ ATTRS{name}=="​ADS7846*",​ SYMLINK+="​input/​touchscreen"​
 </​code>​ </​code>​
-<code /​etc/​pointercal>​+<​code ​bash /​etc/​pointercal>​
  
 -26 -8689 33949688 -5739 -126 22326060 65536 -26 -8689 33949688 -5739 -126 22326060 65536
 </​code>​ </​code>​
-<code /​etc/​X11/​xorg.conf.d/​99-fbdev.conf>​+<​code ​bash /​etc/​X11/​xorg.conf.d/​99-fbdev.conf>​
  
 Section "​Device"​ Section "​Device"​
Line 70: Line 77:
 EndSection EndSection
 </​code>​ </​code>​
-<code /​etc/​X11/​xorg.conf.d/​99-calibration.conf>​+<​code ​bash /​etc/​X11/​xorg.conf.d/​99-calibration.conf>​
  
 Section "​InputClass"​ Section "​InputClass"​
Line 81: Line 88:
 <​code>​ <​code>​
 sudo mv /​usr/​share/​X11/​xorg.conf.d/​99-fbturbo.conf ~ sudo mv /​usr/​share/​X11/​xorg.conf.d/​99-fbturbo.conf ~
 +</​code>​
 +
 +https://​learn.adafruit.com/​running-opengl-based-games-and-emulators-on-adafruit-pitft-displays/​pitft-setup
 +<​code>​
 +sudo apt-get update
 +sudo apt-get install cmake git
 +git clone https://​github.com/​tasanakorn/​rpi-fbcp
 +cd rpi-fbcp/
 +mkdir build
 +cd build/
 +cmake ..
 +make
 +sudo install fbcp /​usr/​local/​bin/​fbcp
 +/​usr/​local/​bin/​fbcp &
 +
 +sudo nano /​etc/​rc.local
 +
 +sudo dpkg-reconfigure console-setup
 +Select “UTF-8”,​ “Guess optimal character set”, “Terminus” and “6x12 (framebuffer only).”
 +
 +
 +dtoverlay=pitft28-resistive-overlay,​rotate=90,​speed=80000000,​fps=60
 +
 </​code>​ </​code>​