Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    Solved HELP can't use PiTFT recalbox 6.1.1

    Recalbox General
    help cant pitft recalbox 6.1.1
    3
    8
    175
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ppfromero
      ppfromero last edited by

      Hello guys,

      I want to use my piTFT resistive screenc 320x240 TFT with my RPI2 and recalbox 6.1.1,

      I put the following lines via recalbox web UI following the page:
      https://github.com/recalbox/recalbox-os/wiki/TFT-Screen-SPI-Bus-(EN)

      Overlay config with standard values for fb copy

      dtparam=spi=on
      dtparam=i2c1=on
      dtparam=i2c_arm=on
      #forcing HDMI output at TFT screen resolution to be able to make the FB copy
      #resolution configuration
      hdmi_force_hotplug=1
      hdmi_cvt=320 240 60 1 0 0 0
      hdmi_group=2
      hdmi_mode=87
      # working config for speed
      # 900 Mhz -> 48000000
      # 1Ghz -> 35000000
      #modification of the speed   
      dtoverlay=pitft28-resistive,rotate=90,speed=22000000,fps=60
      

      Enable fb

      ## fbcp FrameBuffer Copy Program
      ## For small TFT screen on GPIO and SPI
      ## See https://github.com/recalbox/recalbox-os/wiki/Utility---Use-of-fbcp-for-small-TFT-screen-%28EN%29 for details
      ## Needed for Waveshare 3.2" 3.5" TFT screen, 2.8" Adafruit screen
      ## See https://github.com/recalbox/recalbox-os/wiki/TFT-Screen-SPI-Bus-%28EN%29
      ## for support and configuration details needed by /boot/config.txt
      system.fbcp.enabled=1
      

      Disable GPIO

      # ------------ D2 - GPIO Controllers ------------ #
      ## GPIO Controllers
      ## enable controllers on GPIO with mk_arcarde_joystick_rpi (0,1)
      controllers.gpio.enabled=0
      ## mk_gpio arguments, map=1 for one controller, map=1,2 for 2 (map=1,map=1,2)
      ##controllers.gpio.args=map=1,2
      ## Custom mk_gpio arguments,
      ## map=5 gpio1=Y-,Y+,X-,X+,start,select,a,b,tr,y,x,tl,hk  for one controller,
      ## map=5 gpio1=pin1,pin2,pin3,.....,pin12,pin13
      ## map=5,6 gpio1=Y-,Y+,X-,X+,start,select,a,b,tr,y,x,tl,hk gpio2=Y-,Y+,X-,X+,start,select,a,b,tr,y,x,tl,hk for 2 (map=5,map=5,6)
      ## map=5,6 gpio1=gpiox,gpioy,gpioz,.....,gpiou,gpiov gpio2=gpiox,gpioy,gpioz,.....,gpiou,gpiov
      # where gpiox,gpioy,gpioz ... are NOT pin numbers on the connector, BUT location gpio numbered as in 
      # https://www.raspberrypi-spy.co.uk/wp-content/uploads/2012/06/Raspberry-Pi-GPIO-Layout-Model-B-Plus-rotated-2700x900.png
      ## Set pin to -1 to disable it
      # controllers.gpio.args=map=5,6 gpio=4,17,27,22,10,9,25,24,23,18,15,14,2 gpio2=11,5,6,13,19,26,21,20,16,12,7,8,3
      ## MCP configuration : GPIO and MCP can be used together. You can mix them.
      ## map=0x20,0x21 for 2 mcp23017 on i2c bus
      #controllers.gpio.args=map=0x20,0x21,5,6 gpio=4,17,27,22,10,9,25,24,23,18,15,14,-1 gpio2=11,5,6,13,19,26,21,20,16,12,7,8,-1
      

      Video settings

      ## Set game resolution for emulators
      ## select your mode from the command : tvservice -m [MODE]
      ## CEA 5 HDMI : 1920x1080 @ 60Hz 16:9, clock:74MHz interlaced 
      ## CEA 4 HDMI : 1280x720 @ 60Hz 16:9, clock:74MHz progressive
      ## use 'default' for using the default resolution
      ## use 'auto' : switches to CEA 4 HDMI if supported, else keep the current resolution
      ## (string)
      ##global.videomode=CEA 4 HDMI
      global.videomode=default
      
      ## Shader set 
      ## Automatically select shaders for all systems
      ## (none, retro, scanlines)
      global.shaderset=none
      
      ## Once enabled, your screen will be cropped, and you will have a pixel perfect image (0,1)
      global.integerscale=0
      
      ## Set gpslp shader for all emulators (prefer shadersets above). Absolute path (string)
      global.shaders=
      
      ## Set ratio for all emulators (auto,4/3,16/9,16/10,custom)
      ##global.ratio=auto
      global.ratio=4/3
      

      The screen remain white ...
      Any additional idea?

      Best regards

      José

      1 Reply Last reply Reply Quote 0
      • acris
        acris last edited by acris

        Hello

        Do you upload or check if pitft28-resistive.dtbo file exist in /boot/overlays ?

        Can you run this commande in ssh : ps aux | grep fbcp and post the result.

        @ian57 any idea ?

        1 Reply Last reply Reply Quote 0
        • ppfromero
          ppfromero last edited by

          Hello!!
          Yes the pitft28-resistive.dtbo exist in sdcard at overlay directory

          the command

          # # ps aux | grep fbcp
          # root       855  0.0  0.0   2340   228 pts/0    S+   15:51   0:00 grep fbcp
          

          thanls for your help

          José

          ian57 1 Reply Last reply Reply Quote 0
          • ian57
            ian57 Staff @ppfromero last edited by ian57

            @ppfromero did you wire the screen by yourself using wires, or is it plugged directly on the gpio? Can you send the exact type of screen your are using. Perphaps you don't use the right overlay

            you can check if /dev/fb1 exists to see if your screen is activated, but il remains white, so for me the overlay you are using using is not good...

            "UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity." Dennis Ritchie

            1 Reply Last reply Reply Quote 0
            • ppfromero
              ppfromero last edited by acris

              @ian57
              Yes sure here below the pictures:
              ![0_1588453648796_rpi tft.png](Uploading 100%)

              Model is PITFT Mini Kit - 320x240 2.8
              TFT + Touchscreen for Raspberry PI
              Resistive version
              I buy the screen with GPIO connector 26 points
              If the picture don't appears internet link
              http://www.ohmeron.be/fr/prototyping/lcd-tft/pitft-mini-kit-320-x-240-2-8-touchscreen-for-raspberry.html

              My RPI:
              RPI2 Model B V1.1 (2014)

              No fb1 in dev, only fb0

              Then something strange, the following lines:

              dtparam=spi=on
              dtparam=i2c1=on
              dtparam=i2c_arm=on
              

              Are always replaced by:

              dtparam=i2c_arm=on
              dtparam=i2c_arm=on
              dtparam=i2c_arm=on
              

              After reboot....

              Thanks again guys

              1 Reply Last reply Reply Quote 0
              • acris
                acris last edited by

                You need to rw partition

                mount -o remount,rw /boot to modify config.txt

                ppfromero 1 Reply Last reply Reply Quote 0
                • ppfromero
                  ppfromero @acris last edited by

                  @acris ok guys I understand my mistake, I put all the initial configuration in recalbox/share/system/ recalbox.conf file and not in boot....

                  Now it's working fine!
                  Thanks again for your help

                  Regards
                  José

                  1 Reply Last reply Reply Quote 0
                  • ian57
                    ian57 Staff last edited by

                    @ppfromero that's why you need to read attentively the documentation 🙂

                    "UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity." Dennis Ritchie

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    Want to support us ?

                    70
                    Online

                    90.9k
                    Users

                    26.5k
                    Topics

                    182.3k
                    Posts

                    Copyright © 2021 recalbox.com