Merge pull request #236 from caquino/caquino/issue-234
add papirus display system requirements
This commit is contained in:
commit
a4186e2bfd
@ -11,11 +11,14 @@
|
|||||||
- "dtoverlay=dwc2"
|
- "dtoverlay=dwc2"
|
||||||
- "dtparam=spi=on"
|
- "dtparam=spi=on"
|
||||||
- "dtoverlay=spi1-3cs"
|
- "dtoverlay=spi1-3cs"
|
||||||
|
- "dtoverlay=i2c_arm=on"
|
||||||
|
- "dtoverlay=i2c1=on"
|
||||||
services:
|
services:
|
||||||
enable:
|
enable:
|
||||||
- dphys-swapfile.service
|
- dphys-swapfile.service
|
||||||
- pwnagotchi.service
|
- pwnagotchi.service
|
||||||
- bettercap.service
|
- bettercap.service
|
||||||
|
- epd-fuse.service
|
||||||
disable:
|
disable:
|
||||||
- apt-daily.timer
|
- apt-daily.timer
|
||||||
- apt-daily.service
|
- apt-daily.service
|
||||||
@ -79,6 +82,10 @@
|
|||||||
- fonts-dejavu-core
|
- fonts-dejavu-core
|
||||||
- fonts-dejavu-extra
|
- fonts-dejavu-extra
|
||||||
- python3-pil
|
- python3-pil
|
||||||
|
- python3-smbus
|
||||||
|
- libfuse-dev
|
||||||
|
- bc
|
||||||
|
- fonts-freefont-ttf
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
@ -135,6 +142,33 @@
|
|||||||
path: /etc/dphys-swapfile
|
path: /etc/dphys-swapfile
|
||||||
content: "CONF_SWAPSIZE=1024"
|
content: "CONF_SWAPSIZE=1024"
|
||||||
|
|
||||||
|
- name: clone papirus repository
|
||||||
|
git:
|
||||||
|
repo: https://github.com/repaper/gratis.git
|
||||||
|
dest: /usr/local/src/gratis
|
||||||
|
|
||||||
|
- name: build papirus service
|
||||||
|
make:
|
||||||
|
chdir: /usr/local/src/gratis
|
||||||
|
target: rpi
|
||||||
|
params:
|
||||||
|
EPD_IO: epd_io.h
|
||||||
|
PANEL_VERSION: 'V231_G2'
|
||||||
|
|
||||||
|
- name: install papirus service
|
||||||
|
make:
|
||||||
|
chdir: /usr/local/src/gratis
|
||||||
|
target: rpi-install
|
||||||
|
params:
|
||||||
|
EPD_IO: epd_io.h
|
||||||
|
PANEL_VERSION: 'V231_G2'
|
||||||
|
|
||||||
|
- name: configure papirus display size
|
||||||
|
lineinfile:
|
||||||
|
dest: /etc/default/epd-fuse
|
||||||
|
regexp: "#EPD_SIZE=2.0"
|
||||||
|
line: "EPD_SIZE=2.0"
|
||||||
|
|
||||||
- name: acquire python3 pip target
|
- name: acquire python3 pip target
|
||||||
command: "python3 -c 'import sys;print(sys.path.pop())'"
|
command: "python3 -c 'import sys;print(sys.path.pop())'"
|
||||||
register: pip_target
|
register: pip_target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user