Fixed typo
This commit is contained in:
20
INSTALL.md
20
INSTALL.md
@@ -62,10 +62,17 @@ pip install gphoto2
|
|||||||
-or-
|
-or-
|
||||||
pip install gphoto2-cffi
|
pip install gphoto2-cffi
|
||||||
|
|
||||||
|
## Additional setup steps for my hardware setup
|
||||||
|
|
||||||
|
### Pollin LS-7T touch screen
|
||||||
|
|
||||||
|
#### Install required packages
|
||||||
|
```bash
|
||||||
apt install xinput-calibrator xserver-xorg-input-evdev
|
apt install xinput-calibrator xserver-xorg-input-evdev
|
||||||
|
```
|
||||||
|
|
||||||
/usr/share/X11/xorg.conf.d/99-eGalax.conf:
|
#### Configure device
|
||||||
|
Add the following to `/usr/share/X11/xorg.conf.d/99-eGalax.conf`:
|
||||||
```
|
```
|
||||||
Section "InputClass"
|
Section "InputClass"
|
||||||
Identifier "evdev tablet catchall"
|
Identifier "evdev tablet catchall"
|
||||||
@@ -80,4 +87,13 @@ Section "InputClass"
|
|||||||
Option "Calibration" "19 1988 96 1965"
|
Option "Calibration" "19 1988 96 1965"
|
||||||
Option "SwapAxes" "0"
|
Option "SwapAxes" "0"
|
||||||
EndSection
|
EndSection
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The calibration data can be obtained using `xinput-calibrator`.
|
||||||
|
|
||||||
|
### Canon Selphy CP-1000 printer
|
||||||
|
|
||||||
|
#### Install Gutenprint printer drivers
|
||||||
|
```bash
|
||||||
|
apt install printer-driver-gutenprint
|
||||||
|
```
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ class Photobooth:
|
|||||||
self._lampOn = lambda : self._gpio.lampOn(lamp)
|
self._lampOn = lambda : self._gpio.lampOn(lamp)
|
||||||
self._lampOff = lambda : self._gpio.lampOff(lamp)
|
self._lampOff = lambda : self._gpio.lampOff(lamp)
|
||||||
|
|
||||||
self._gpio.setButton(triger_pin, self.gpioTrigger)
|
self._gpio.setButton(trigger_pin, self.gpioTrigger)
|
||||||
self._gpio.setButton(exit_pin, self.gpioExit)
|
self._gpio.setButton(exit_pin, self.gpioExit)
|
||||||
else:
|
else:
|
||||||
self._lampOn = lambda : None
|
self._lampOn = lambda : None
|
||||||
|
|||||||
@@ -650,6 +650,10 @@ class PyQt5WaitMessage(QFrame):
|
|||||||
|
|
||||||
painter = QPainter(self)
|
painter = QPainter(self)
|
||||||
|
|
||||||
|
f = self.font()
|
||||||
|
f.setPixelSize(self.height() / 8)
|
||||||
|
painter.setFont(f)
|
||||||
|
|
||||||
rect = QRect(0, self.height() * 3 / 5, self.width(), self.height() * 3 / 10)
|
rect = QRect(0, self.height() * 3 / 5, self.width(), self.height() * 3 / 10)
|
||||||
painter.drawText(rect, Qt.AlignCenter, self._message)
|
painter.drawText(rect, Qt.AlignCenter, self._message)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user