====== Raspberry pi ======
Links:
* https://docs.dataplicity.com/docs/get-pi-connected-to-the-internet
* https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md
* https://electronicshobbyists.com/controlling-gpio-through-android-app-over-bluetooth-raspberry-pi-bluetooth-tutorial/
* https://www.zentrale.com.au/posts/raspberrykiosk/
* GPRS - https://www.waveshare.com/wiki/SIM868_PPP_Dail-up_Networking
[[KB:RaspberryPI:Setup Kiosk]]
===== Install =====
- Download from https://www.raspberrypi.org/downloads/raspbian/
- command `sudo dd bs=4M if=2019-09-26-raspbian-buster-lite.img of=/dev/sdX conv=fsync`
===== Enable ssh over USB @ Raspberry pi =====
at sd- "boot" partition
- add ssh file touch ssh
- in config.txt should append dtoverlay=dwc2
- in cmdline.txt should add after rootwait modules-load=dwc2,g_ether
- plug the usb, do ssh ssh pi@raspberrypi.local
default user: **pi**, default password: **raspberry**
===== 1st time config =====
sudo raspi-config
===== LCD Model =====
Got device from https://www.aliexpress.com/item/32945416376.html
How to use it with Raspbian system
This LCD Module need install driver first.
==== Install ====
Open terminal(SSH) and install the driver on RaspberryPi
(tested on RaspberryPi 3B+,3B,2B,2B+,1B,ZERO)
Run:
sudo rm -rf LCD-show
git clone https://github.com/goodtft/LCD-show.git
chmod -R 755 LCD-show
cd LCD-show/
sudo ./LCD35-show
# Wait A Few Minutes, when the system reboot ok, you can see that.
==== Touch screen calibration ====
This LCD can be calibrated using a program called xinput_calibrator
1. Install it with the commands :
cd LCD-show/
sudo dpkg -i -B xinput-calibrator_0.7.5-1_armhf.deb
2. Click the Men button on the task bar, choose `Preference -> Calibrate Touchscreen.`
3. Finish the touch calibration following the prompts. Maybe rebooting is required to make calibration active.
4. You can create a `99-calibration.conf` file to save the touch parameters (not necessary if file exists).
`/etc/X11/xorg.conf.d/99-calibration.conf`
5. Save the touch parameters (may differ depending on LCD) to `99-calibration.conf`
==== Trableshooting ====
you should install X server on "light" version of rpi
sudo apt-get --no-install-recommends install xserver-xorg xserver-xorg-video-fbdev xinit pciutils xinput xfonts-100dpi xfonts-75dpi xfonts-scalable
sudo vi /etc/X11/xorg.conf
Section "Device"
# WaveShare SpotPear 3.5", framebuffer 1
Identifier "uga"
driver "fbdev"
Option "fbdev" "/dev/fb1"
Option "ShadowFB" "off"
EndSection
Section "Monitor"
# Primary monitor. WaveShare SpotPear 480x320
Identifier "WSSP"
EndSection
Section "Screen"
Identifier "primary"
Device "uga"
Monitor "WSSP"
EndSection
Section "ServerLayout"
Identifier "default"
Screen 0 "primary" 0 0
EndSection
==== JavaFX ====
https://swehacker.com/?p=407
==== Playmouth ====
https://scribles.net/customizing-boot-up-screen-on-raspberry-pi/