Difference between revisions of "Raspberrypi"

From Alessandro's Wiki
 
(4 intermediate revisions by the same user not shown)
Line 5: Line 5:




* casting to a raspberry
= casting to a raspberry =


  apt-get install libwidevinecdm0
  apt-get install libwidevinecdm0




*; installing 3.5 Display
= installing 7 Display =
 
There are 4 jumper wires (Red, Black, Yelow & Green) that connect to  the following pins on the LCD controller board:
 
    Red wire to pin marked 5V
    Green wire to pin marked SDA
    Yellow wire to pined marked SCL
    Black wire to pin marked GND
 
The other end of the wires will connect to the following pins on the Raspberry Pi computer board:
 
    Red wire to pin 2
    Green wire to pin 3
    Yellow wire to pin 4
    Black wire to pin 6
 
* Xorg modifications
 
Paste in: /etc/X11/xorg.conf
 
Section "InputClass"
  Identifier "calibration"
  Driver "evdev"
  MatchProduct "FT5406 memory based driver"
 
  Option "EmulateThirdButton" "1"
  Option "EmulateThirdButtonTimeout" "750"
  Option "EmulateThirdButtonMoveThreshold" "30"
EndSection
 
= installing 3.5 Display =


there are various models of the same 3.5 display, two are listed here
there are various models of the same 3.5 display, two are listed here
Line 36: Line 66:
  cd LCD-show/
  cd LCD-show/
  sudo ./rotate.sh 90  .. 180  270
  sudo ./rotate.sh 90  .. 180  270
= config =
== DSI lines ==
DSI lines are disabled by default. To enable detection, add the following line to /boot/config.txt:
ignore_lcd=0
== 3.5mm jack output sound ==
If using the Raspberry Pi 3.5mm jack to output sound, sound quality can be improved by adding the following line to your boot/config.txt file:
audio_pwm_mode=2
== HDMI audio ==
in config.txt, this lines will force the audio output to the analog jack
dtparam=audio=on
audio_pwm_mode=2
hdmi_ignore_edid_audio=1
disable_audio_dither=1
= software =
* on screen keyboard
apt-get install matchbox-keyboard
or
sudo apt-get install florence
== Raspbian 11 ==
=== LAn iface names ===
iface names are renamed to enx???? .... very bad
* in /boot/cmdline.txt
net.ifnames=0 biosdevname=0

Latest revision as of 20:25, 7 February 2024


http://www.raspberrypi.org/documentation/configuration/config-txt.md


casting to a raspberry

apt-get install libwidevinecdm0


installing 7 Display

There are 4 jumper wires (Red, Black, Yelow & Green) that connect to the following pins on the LCD controller board:

   Red wire to pin marked 5V
   Green wire to pin marked SDA
   Yellow wire to pined marked SCL
   Black wire to pin marked GND

The other end of the wires will connect to the following pins on the Raspberry Pi computer board:

   Red wire to pin 2
   Green wire to pin 3
   Yellow wire to pin 4
   Black wire to pin 6
  • Xorg modifications

Paste in: /etc/X11/xorg.conf

Section "InputClass"
  Identifier "calibration"
  Driver "evdev"
  MatchProduct "FT5406 memory based driver"
  Option "EmulateThirdButton" "1"
  Option "EmulateThirdButtonTimeout" "750"
  Option "EmulateThirdButtonMoveThreshold" "30"
EndSection

installing 3.5 Display

there are various models of the same 3.5 display, two are listed here


sudo rm -rf LCD-show
git clone https://github.com/goodtft/LCD-show.git
chmod -R 755 LCD-show
cd LCD-show/
  • MHS-3.5inch_RPi_Display

http://www.lcdwiki.com/MHS-3.5inch_RPi_Display

cd LCD-show/
sudo ./MHS35-show


  • V3 3.5inch_RPi_Display
cd LCD-show/
sudo ./LCD35-show
  • rotate display
cd LCD-show/
sudo ./rotate.sh 90  .. 180  270

config

DSI lines

DSI lines are disabled by default. To enable detection, add the following line to /boot/config.txt:

ignore_lcd=0

3.5mm jack output sound

If using the Raspberry Pi 3.5mm jack to output sound, sound quality can be improved by adding the following line to your boot/config.txt file:

audio_pwm_mode=2

HDMI audio

in config.txt, this lines will force the audio output to the analog jack

dtparam=audio=on 
audio_pwm_mode=2
hdmi_ignore_edid_audio=1
disable_audio_dither=1

software

  • on screen keyboard
apt-get install matchbox-keyboard

or

sudo apt-get install florence

Raspbian 11

LAn iface names

iface names are renamed to enx???? .... very bad

  • in /boot/cmdline.txt
net.ifnames=0 biosdevname=0