-
Notifications
You must be signed in to change notification settings - Fork 0
/
notes
51 lines (35 loc) · 1.34 KB
/
notes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#######
### INSTALLATION
#######
On Pico
Copy pico/main.py and pico/stream.py to the Pico storage, using Thonny.
On Pi
sudo apt install python-venv
python -m venv create .venv
source .venv/bin/activate
python -m pip install -r requirements.txt
or, to upgrade existing packages:
python -m pip install -r requirements.txt --upgrade
Raspberry Pi OS may also need SDL2 libraries:
sudo apt install libsdl2-mixer-2.0-0 libsdl2-ttf-2.0-0 libsdl2-image-2.0-0
Raspberry Pi OS may need maths libraries from these packages for numpy to work
sudo apt install libatlas-base-dev libopenblas-dev
#######
### ADDITIONAL TECHNICAL NOTES FOR TROUBLESHOOTING
#######
Documentation for Thorpy GUI library for pygame:
http://www.thorpy.org/documentation
# For development, if you want graphical app on local display from remote session
export SDL_FBDEV=/dev/fb0
# Disable mouse driver, including OS touch mouse emulation
export SDL_MOUSEDRV=/dev/null
# App may need to run with root permissions in order to access framebuffer
sudo ./app.py
# Enable more memory for video driver in performance options
# Set it for 128Mb to allow 800x600 driver to work in framebuffer (non-X) mode
sudo raspi-config
# Check touchscreen device on the commandline
hexdump /dev/input/event0
evtest
# Mirror DSI touchscreen to HDMI
xrandr --output DSI-1 --same-as --output HDMI-1 --scale-from 800x600