baby shoppy 10:38 (1 minute ago) to me # For more options and information see # http://www.raspberrypi.org/documentation/configuration/config-txt.md # Some settings may impact device functionality. See link above for details # uncomment if you get no picture on HDMI for a default "safe" mode #hdmi_safe=1 # uncomment this if your display has a black border of unused pixels visible # and your display can output without overscan #disable_overscan=1 # uncomment the following to adjust overscan. Use positive numbers if console # goes off screen, and negative if there is too much border #overscan_left=16 #overscan_right=16 #overscan_top=16 #overscan_bottom=16 # uncomment to force a console size. By default it will be display's size minus # overscan. #framebuffer_width=1280 #framebuffer_height=720 # uncomment if hdmi display is not detected and composite is being output hdmi_force_hotplug=1 # uncomment to force a specific HDMI mode (this will force VGA) #hdmi_group=1 #hdmi_mode=1 # uncomment to force a HDMI mode rather than DVI. This can make audio work in # DMT (computer monitor) modes #hdmi_drive=2 # uncomment to increase signal to HDMI, if you have interference, blanking, or # no display #config_hdmi_boost=4 # uncomment for composite PAL #sdtv_mode=2 #uncomment to overclock the arm. 700 MHz is the default. #arm_freq=800 # Uncomment some or all of these to enable the optional hardware interfaces dtparam=i2c_arm=on #dtparam=i2s=on dtparam=spi=on enable_uart=1 # Uncomment this to enable the lirc-rpi module #dtoverlay=lirc-rpi # Additional overlays and parameters are documented /boot/overlays/README # Enable audio (loads snd_bcm2835) dtparam=audio=on max_usb_current=1 hdmi_force_hotplug=1 config_hdmi_boost=7 hdmi_group=2 hdmi_mode=1 hdmi_mode=87 hdmi_drive=2 hdmi_cvt 800 480 60 6 0 0 0 dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900 ### Elecrow HDMI 5inch 800x480 LCD display # https://www.amazon.com/Elecrow-Display-Monitor-800x480-Raspberry/dp/B013JECYF2/ # Adopted from the following URL. Modified for clarity and corrections. # https://www.amazon.com/gp/aw/review/B013JECYF2/R3ZXW0VTV8AEB/ref=cm_cr_dp_mb_rvw_1?ie=UTF8&cursor=1 # DOCUMENTATION > CONFIGURATION > CONFIG-TXT # https://www.raspberrypi.org/documentation/configuration/config-txt.md ### Display configuration # hdmi_group: 0 auto-detect from EDID; 1 CEA; 2 DMT hdmi_group=2 # hdmi_mode: 87 custom configuration hdmi_mode=87 # hdmi_cvt: hdmi_cvt 800 480 60 6 0 0 0 ### Touch panel activation # Serial Peripheral Interface (SPI) Bus # https://www.raspberrypi.org/documentation/hardware/raspberrypi/spi/README.md # Gibhub: raspberrypi/firmware/boot/overlays/README # https://github.com/raspberrypi/firmware/blob/master/boot/overlays/README ### Enable interfaces # enable the spi interfaces dtparam=spi=on # enable the ARM's i2c interface dtparam=i2c_arm=on ### Configure touch panel # penirq is required and usually xohms (60-100) has to be set as well. # Apart from that, pmax (255) and swapxy are also common. # The rest of the calibration can be done with xinput-calibrator. # See: github.com/notro/fbtft/wiki/FBTFT-on-Raspian # Device Tree binding document: # www.kernel.org/doc/Documentation/devicetree/bindings/input/ads7846.txt # Device tree bindings for TI's ADS7843, ADS7845, ADS7846, ADS7873, TSC2046 # SPI driven touch screen controllers. # https://www.kernel.org/doc/Documentation/devicetree/bindings/input/ads7846.txt # Activate ADS7846 Touch controller dtoverlay=ads7846 # cs: SPI bus Chip Select (default 1) dtparam=cs=1 # penirq: GPIO used for PENIRQ. REQUIRED dtparam=penirq=25 # penirq_pull: Set GPIO pull (default 0=none, 2=pullup) dtparam=penirq_pull=2 # speed: SPI bus speed (default 2MHz, max 3.25MHz) dtparam=speed=50000 # set to keep vref on for differential measurements as well dtparam=keep_vref_on=0 # swapxy: Swap x and y axis dtparam=swapxy=0 # pmin: Minimum reported pressure value (default 0) # pmax: Maximum reported pressure value (default 65535) dtparam=pmax=255 # xohms: Touchpanel sensitivity (X-plate resistance) (default 400) dtparam=xohms=150 # Use xinput-calibrator to obtain these values # $ sudo aptitute install xinput-calibrator # Pi menu - Preferences - Calibrate Touch Screen # xmin: Minimum value on the X axis (default 0) dtparam=xmin=148 # xmax: Maximum value on the X axis (default 4095) dtparam=xmax=3948 # ymin: Minimum value on the Y axis (default 0) dtparam=ymin=283 # ymax: Maximum value on the Y axis (default 4095) dtparam=ymax=4015 # Configures the w1-gpio Onewire interface module. # Use this overlay if you *do* need a GPIO to drive an external pullup. dtoverlay=w1-gpio-pullup # gpiopin: GPIO for I/O (default "4") dtparam=gpiopin=4 # pullup: Non-zero, "on", or "y" to enable the parasitic # power (2-wire, power-on-data) feature # extpullup: GPIO for external pullup (default "5") dtparam=extpullup=1