Code Monkey home page Code Monkey logo

lcd-show's Introduction

WaveShare Team

image

About us

Waveshare was founded in 2006, among the first to embrace open source hardware. We are keen to share awesome hardware with you, aiming to accelerate the design and manufacture of electronic products and accelerate the development of the world.

Website

About Issues

  • In order to respond to your technical issues faster, it is recommended to submit issues through the ticket system:https://support.waveshare.com/hc/en-us/
  • On Github, we only review issues from time to time

lcd-show's People

Contributors

dragon715205 avatar waveshare avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lcd-show's Issues

Using TFT 3.5'' with this library, disables SPI completely

Good day,
Today I struggled with a problem, where I use a TFT display with Raspberry PI 3B+. In addition to this, I use SX1276 radio module, which also works with SPI protocol. Although I can use both of them separately, I could not use them both at the same time. The issue was that after the call of LCD35-show command is executed, after reboot, the SPI is disabled, and no spidev device can be found in /dev/ directory. Manually turning on SPI from raspi-config does not solve this issue. Is there any solution or at least any workaround to this problem?

Touch input works yet display output is still on HDMI

Recently started working with Pi 3 A+ and 3.2" RPi LCD (B). Installed Raspberry Pi OS using the imager from windows, updated once running on Pi and then cloned the git. After restart and switching to LCD display using:
cd LCD-show/ and ./LCD32-show
After reboot screen resolution changes and touchscreen becomes active, yet display still only outputs to HDMI connection.

Provide display driver for "10.1inch resistive touch screen LCD" as gadget snap

Would be great if you could provide a driver for 10.1 inch display as snap. A gadget snap is a special type of snap that contain device specific support code and data and should be the suitable snap type. The snap has to use the core:spi interfaces via a plug to support resistive touch functionality. For visualization related data core:x11 would be the suitable interface ATM (means driver does not support Wayland nor Mir).

LibreElec compatibility

Hey there,

on my way making a kodi based Web Radio I stuck in installing the drivers on LibreElec, because there is no apt for it.

Is there a way to install the Screen for LE? I don't want to make my settings by changing between x11 from Raspbian and Kodi permanently.

BR

Using Second HDMI port

I need to be able to use the touchscreen display and have another monitor connected to my RPI at the same time. After installing the driver this no longer seems possible. I have attempted to find a work around my manipulating the RPI config files but have not found a solution.

Kernel 5.4 support

Hello, I tested a 3.2 LCD with kernel 5.4 on Raspberry Pi OS, but isn't working yet - would be great to get this up and running as 5.4 adds libcamera and IMX477 support! Thank you

Small issue with sudo install. Sharing solution here to help others.

Hi, I had a small issue installing the drivers. I found a solution and thought it would be helpful to share here so others are not confused.

I was installing on Pi Compute 3+ (which does not have integrated wifi), so I had to download from github using my PC and transferred the LCD-show-master folder with a USB harddrive to my Pi.

I used cd command to move to the LCD-show-master folder and then tried sudo ./filename but this command did not work.

The solution was I apparently had to first make the file executable with the command:
chmod +x filename

Hope this helps someone!

Can we get an update?

Can we get an update here? 2 years is literally a LIFETIME.

There are also a TON of highly destructive, amateurish issues with this script-kiddie approach here.

You overwrite files, and don't make backups (Really?? REALLY???!!!!)
You "ASSUME" that everyone is running Raspbian... NOPE.
You "ASSUME" that everything is where YOU think it should be.

There is literally NOTHING here worth salvaging..

Honestly.. it's like you got it to work once, in a specific case situation, and then regurgitated it into a ton of scripts..

i'll never buy another waveshare product again.. .sorry, but not sorry, this is a bare minimum approach.

If you can't support your products, stop making products, you don't deserve the income, ,go back to producing one off electronics for yourself, because as a business model, this is doomed to failure.

FBCP not found in newef versions of raspbian - Fixed by adafruit

I'm not making a pull request, but you can fix it by adding code that pulls and install fbcp to your install scripts.. (copied from https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/pitft-fbcp.sh )

# FBCP INSTALL -------------------------------------------------------------

echo "Downloading and installing fbcp..."
apt-get --yes --force-yes install cmake
cd /tmp
curl -LO https://github.com/tasanakorn/rpi-fbcp/archive/master.zip
unzip master.zip
cd rpi-fbcp-master
mkdir build
cd build
cmake ..
make
install fbcp /usr/local/bin/fbcp
cd ../..
rm -rf rpi-fbcp-master

# Add fbcp to /rc.local:
grep fbcp /etc/rc.local >/dev/null
if [ $? -eq 0 ]; then
	# fbcp already in rc.local, but make sure correct:
	sed -i "s/^.*fbcp.*$/\/usr\/local\/bin\/fbcp \&/g" /etc/rc.local >/dev/null
else
	# Insert fbcp into rc.local before final 'exit 0'
sed -i "s/^exit 0/\/usr\/local\/bin\/fbcp \&\\nexit 0/g" /etc/rc.local >/dev/null
fi

Switch back to hdmi temporarily?

I am making a project where my pi will "dock" and hdmi will get plugged in. is there any way to switch back to hdmi by rebooting?

License

Could you provide a license file pls?

How to compile WaveShare display SPI driver for Openwrt?

Hello . . .
I use the 3.5-inch screen of models A, B, C in RaspberryPi4B.

The drivers also run easily on Raspberrypi with different versions of Linux.
My problem is how can I compile Waveshare drivers on Openwrt to make them usable? Because the OpenWrt project is a small version of Linux for Embed devices and does not have many of the original Linux "Features" and practically the script designed for it does not work because as far as I understand it has a script from the original Linux Repository to run Be used.

I also know that to connect an SPI device to OpenWrt, we need to add driver files to our device's Linux kernel, which I did, but it looks like WaveShare needs its own custom driver to activate it, that I do not know how to add it to the kernel?

Screenshot (100)

Can anyone help me?

original

LCD35-Show touch screen not working

Installed using LCD35-Show lite, display are fine but touch screen does not seem to work at all, any howtos for troubleshooting?

Raspberry PI OS Linux raspberrypi 5.10.92-v7+ #1514 SMP Mon Jan 17 17:36:39 GMT 2022 armv7l (Debian Bulleye)

Configure LCD to be flipped horizontally and used over HDMI?

Hi, I hope this is the right place for this question. I've got the "5inch HDMI Display-B" 800x480 USB Capacitive Touch Rev 1.0 LCD display that is commonly used with raspberry pi. In my case, I want to use it via HDMI andI need the display to be flipped horizontally so I can use it with a teleprompter.

The problem is that the OSD does not support horizontal flip. I also have a 7" model which appears to use the same or similar firmware, and it does have the option to flip horizontal, which makes me think it should be possible to get this smaller display to flip horizontal.

I've found the LCD-show "driver" which is used to configure the display when booting with a raspberry pi, and I'm wondering if this LCD-show drive actually changes the configuration in the NVRAM of the LCD board, so that I could use LCD-show to flip the display horizontal, then unplug it and use it as a plain HDMI display, but have the image appear flipped.

Does anyone know if this is possible?

Not working. Brick.

All this is absolutely not working. Stops loading and hangs. Display 7 ", 800x480
Driver LCD7-800X480-Show
I do not recommend installing, you will have to install OS again

Absolutely abysmal scripts that are highly likely to brick your pi

I'll keep this brief... your scripts have multiple points of failure that should result in an abort or at the very least provide warnings, prompts, and debugging output to help narrow down the causes. These scripts have no such protections. For instance, cmake failed for me, resulting in no driver being built. Then it promptly overwrote critical files like my cmdline.txt and config.txt based on teh assumption that cmake would succeed and promptly rebooted without asking.

Needless to say, your script bricked my pi and obliterated a week's worth of work I had been doing to prepare a custom image.

You use hard-coded paths, and make a ton of assumptions based solely on the Rasbian image, overwrite files without backing them up, and make dozens of extremely destructive changes that universally result in a kernel panic if anything goes wrong. Can't you at least do some error handling FFS?

复制cmdline.txt语段有bug

if [ -b /dev/mmcblk0p7 ]; then sudo cp ./cmdline.txt-noobs /boot/cmdline.txt else sudo cp ./cmdline.txt /boot/ fi
这段没有考虑系统安装在USB或者硬盘的情况,复制本项目的cmdline 到/boot/ 下,会导致无法启动系统,造成假砖。
ps:usb 或硬盘启动cmdline是
root=PARTUUID=**********,忘改进

Raspberry Pi OS (Raspbian) 5.x module error

Given module for every device has been problemmatic with 5.x linux version which would be default for Raspbian.

Have you planning re-share TFT compiled drivers for that update.

How to uninstall this driver?

Hi,

I have installed this driver and now I want to uninstall it because something else that runs through my GPIO stopped working after I installed it. How do it uninstall it?

Best regards

Does 10'1 inch 1280x800 monitor support Ubuntu 16.04 on Hikey 960?

Hello

I just buy the waveshare 10'1 inch 1280x800 monitor and connect it to my Hikey960 board with Ubuntu 16.04. It turns out that there is only colorful lines on the monitor instead of any image.

I've use "sudo ./LCD101-1024x600-show", but the problem remain unsolved.

Is there any way that i can make it support my Hikey 960 board?

Thanks for your reply.

Does anyone know which display driver rev2.1 is using?

I have been using the previous version of the 2.8 inch TFT display with ILI9341 specific libraries and now they won't work with my code. The Waveshare wiki did not mention what display driver is being used in Rev2.1 so I am stuck.

Cannot get it to work on Ubuntu Server 64-bit 20.04 (with Xubuntu desktop)

I have been trying to get this to work on a new install of Ubuntu server 64-bit 20.04 (with Xubuntu desktop) on a Raspberry Pi 3B (3.5 display) and I cannot.

It seems that the paths are different (/boot/firmware instead of just /boot), but even after making manual changes the device gets stuck and won't boot.

Anyone else able to get it to work PI3B?

ARM64 support

In arm64, it can be installed successfully, but after that, the system can't start, and HDMI outputs a lot of words that can't be read clearly.I can't control it. It seems that I can only flash the system again.
(raspberry 4b, system:2020-08-20-raspios-buster-arm64)

USB Ethernet Gadget fail

I am using my RPi4 with USB Eth Gadget.
After running the script, my USB Gadget is gone.
May I know whether it is related?

No Arch Linux ARM support

It breaks the whole system on Arch Linux ARM. Also, a little shady for your source distribution to contain binary files without having any (documented) way of generating them from source

Wrong CMakeCache.txt directory

After it runs the sudo ./LCD5-show command, it throws an error:
CMake Error: The current CMakeCache.txt directory /home/pi/downloads/LCD-show/rpi-fbcp/build/CMakeCache.txt is different than the directory /home/pi/LCD-show/rpi-fbcp/build where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt CMake Error: The source "/home/pi/downloads/LCD-show/rpi-fbcp/CMakeLists.txt" does not match the source "/home/pi/LCD-show/rpi-fbcp/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory. CMake Error: The source directory "/home/pi/LCD-show/rpi-fbcp" does not exist. Specify --help for usage, or press the help button on the CMake GUI. Makefile:176: recipe for target 'cmake_check_build_system' failed make: *** [cmake_check_build_system] Error 1 LCD configrue 0

Does not see the Bluetooth Adapter after implementing.

Hi,
I am using Raspberry Pi 3B+ and also using Bluepy(python library) for Bluetooth Low Energy signal detecting.
After switching to the LCD screen (ie. sudo ./LCD32-show) the Bluetooth doesn't seem to be working.
In bluetoothctl, 'Scan on' and 'Power on' commands return "No Bluetooth Adapter Found".
Re-switching or rebooting the machine does not solve the problem, Raspberry does not see the Adapter after that point.
Only solution on my side is re-imaging the RP, but I have to implement the screen.
Do you have any ideas for my specific problem?
Thanks in advance!

change config-normal.txt to work with headless VNC connections

For working out of the box with VNC you need to set 3 options. (According to Real VNC)

# 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=2
hdmi_mode=82

for 1920x1080 60hz Mode....
If you don't have that you will always get the Error that "VNC cannot currently show the desktop". Or would that break other connected HDMI monitors? At least the hdmi_force_hotplug=1 option should be safe right?

I've also created a .desktop entry with

[Desktop Entry]
Version=1.0
Name=Touchscreen
Comment=Shows on Touchscreen
Path=/home/pi/LCD-show/
Exec=/home/pi/LCD-show/LCD35-show
Icon=/home/pi/LCD-show/touch.jpg
Terminal=false
Type=Application
Categories=Utility

for easily switching with a single Touch and no need for entering the command via shell all the time when switching.

Errors while running script

Hello!
I have 7 inch display. When I run LCD7-800x480-show got errors with cmake and make.

All logs:

Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  xserver-xorg-input-evdev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 117 kB of archives.
After this operation, 169 kB of additional disk space will be used.
Get:1 http://mirror.yandex.ru/mirrors/raspbian/raspbian stretch/main armhf xserver-xorg-input-evdev armhf 1:2.10.5-1 [117 kB]
Fetched 117 kB in 21s (5,545 B/s)
Selecting previously unselected package xserver-xorg-input-evdev.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 80704 files and directories currently installed.)
Preparing to unpack .../xserver-xorg-input-evdev_1%3a2.10.5-1_armhf.deb ...
Unpacking xserver-xorg-input-evdev (1:2.10.5-1) ...
Setting up xserver-xorg-input-evdev (1:2.10.5-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Selecting previously unselected package xinput-calibrator.
(Reading database ... 80713 files and directories currently installed.)
Preparing to unpack .../xinput-calibrator_0.7.5-1_armhf.deb ...
Unpacking xinput-calibrator (0.7.5-1) ...
Setting up xinput-calibrator (0.7.5-1) ...
Processing triggers for gnome-menus (3.13.3-9) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for man-db (2.7.6.1-2) ...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  cmake-data libjsoncpp1 libuv1
Suggested packages:
  codeblocks eclipse ninja-build
The following NEW packages will be installed:
  cmake cmake-data libjsoncpp1 libuv1
0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded.
Need to get 3,771 kB of archives.
After this operation, 19.2 MB of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian stretch/main armhf libuv1 armhf 1.18.0-3~bpo9+1 [86.3 kB]
Get:2 http://mirror.yandex.ru/mirrors/raspbian/raspbian stretch/main armhf cmake-data all 3.7.2-1 [1,216 kB]
Get:3 http://mirror.yandex.ru/mirrors/raspbian/raspbian stretch/main armhf libjsoncpp1 armhf 1.7.4-3 [66.2 kB]
Get:4 http://mirror.yandex.ru/mirrors/raspbian/raspbian stretch/main armhf cmake armhf 3.7.2-1 [2,402 kB]
Fetched 3,771 kB in 21s (172 kB/s)
Selecting previously unselected package cmake-data.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 80722 files and directories currently installed.)
Preparing to unpack .../cmake-data_3.7.2-1_all.deb ...
Unpacking cmake-data (3.7.2-1) ...
Selecting previously unselected package libjsoncpp1:armhf.
Preparing to unpack .../libjsoncpp1_1.7.4-3_armhf.deb ...
Unpacking libjsoncpp1:armhf (1.7.4-3) ...
Selecting previously unselected package libuv1:armhf.
Preparing to unpack .../libuv1_1.18.0-3~bpo9+1_armhf.deb ...
Unpacking libuv1:armhf (1.18.0-3~bpo9+1) ...
Selecting previously unselected package cmake.
Preparing to unpack .../cmake_3.7.2-1_armhf.deb ...
Unpacking cmake (3.7.2-1) ...
Setting up libuv1:armhf (1.18.0-3~bpo9+1) ...
Setting up cmake-data (3.7.2-1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libjsoncpp1:armhf (1.7.4-3) ...
Setting up cmake (3.7.2-1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
CMakeFiles/fbcp.dir/build.make:111: recipe for target 'CMakeFiles/fbcp.dir/depend' failed
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/fbcp.dir/all' failed
Makefile:83: recipe for target 'all' failed
LCD configrue 0

I am afraid of this 3 lines.

CMakeFiles/fbcp.dir/build.make:111: recipe for target 'CMakeFiles/fbcp.dir/depend' failed
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/fbcp.dir/all' failed
Makefile:83: recipe for target 'all' failed

How can I install this driver and connect display using dsi as a result?

Thanks

LCD-35C-show not compatible with Raspberry Pi 4 Kali Linux 64 bit

After installing the 64-bit Kali Linux on my Raspberry Pi 4 the LCD show script doesn't seem to work. It fails to pull dependencies and reboots the RPI. The result from that is a white screen and HDMI connector not working (because the script disables it). To go around that issue I had to use the 32-bit Kali Linux image.

LCD white after installing drivers from git

I've installed latest raspberry pi OS and followed instructions from wiki to install driver.

My LCD screen is white but touch options are working.

Only thing regarding display that changes is that my HDMI device displays in resolution intended for LCD screen.

LCD screen is 3.5inch RPi LCD (A) V3.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.