3,5 inch touchscreen on rPi.

Follow these steps to use a 3.5 inch touchscreen on your rPi.

  1. Update your system with sudo apt-get update && sudo apt-get upgrade
  2. Start raspi-config and go to Interfacing Options and enable the SPI interface.
  3. Download LCD-show van Github:
    cd ~
    sudo rm -rf LCD-show
    git clone https://github.com/goodtft/LCD-show.git
    chmod -R 755 LCD-show
  4. Enter the folder you just cloned with cd LCD-show
    Now all you have to do is start the script for your LCD type.
    For a 3.5″ display you run sudo ./LCD35-show
    The system will install/setup the LCD and reboot with the LCD as display.

To switch back to HDMI:

To use the HDMI port again, go to the LCD-show folder and run
sudo ./LCD-hdmi to switch back to HDMI.

Links

raspberrytips.nl circuitdigest.com github.com/goodtft/LCD-show

16 x 2 LCD voor Arduino.

Met de library van deze pagina is de 16×2 regel LCD van ondergetekende evenals de identieke display van zijn neefje te besturen.

Hier kun je bepalen welk type 16×2 je precies hebt en wat de initialisatie opdracht is.

Aansluiting LCD aan Arduino:

GND -> GND
VCC -> 5V
SDA -> Analog pin 4
SCL -> Analog pin 5

En zo word het scherm geïnitialiseerd:

/ set the LCD address to 0x27 for a 16 chars 2 line display
// A FEW use address 0x3F
// Set the pins on the I2C chip used for LCD connections:
//                    addr, en,rw,rs,d4,d5,d6,d7,bl,blpol
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Set the LCD I2C address