Sorry for the vague instructions.
Pressing the buttons generates a record in the file to a virtual/input that is processed according to the rules of doorpi.ini
Here is the error: [keyboards] io = gpio
Inputs GPIO PC4 and PC7 are assigned to the file read.py can change on your own.
1) armbian img
2) install doorpillars.
3) changing the file from_gpio.py here: /usr/local/lib/python2.7/dist-packages/doorpillars./keyboard
4) install pyA20 pypi.python.org/pypi/pyA20
5) redacted doorpi.ini different name because the gpio pins OrangePi
Earn on output ports starting at PA, for example PA13
=====
[io_OutputPins]
13 = Door
[virtuell_keyboard]
reset_input = true
base_path_input = !BASEPATH!/virtual/inputs/
base_path_output = !BASEPATH!/virtual/outputs/
[virtuell_InputPins]
5888 = out:Door,1,0,3
56 = call:804
=====
The connected MFRC522 took away: http://orangepi.pp.ua/index.php/topic,415.0.html
1. Connection
RC522 OPi PC
MOSI ----------> pin 19
MISO -----------> pin 21
SCLK -----------> pin 23
SDA -----------> pin 24
RST -----------> pin 22
IRQ ------------> not connected
2. Check the availability of the device
ls /dev/spidev0.0
3. Install the libraries
apt-get install python-dev
4. Install GPIO library
git clone https://github.com/duxingkei33/orangepi_PC_gpio_pyH3.git
cd orangepi_PC_gpio_pyH3
python setup.py install
5. Installing SPI library
git clone https://github.com/lthiery/SPI-Py.git
cd SPI-Py
python setup.py install
6. Installation MFRC522 library
git clone https://github.com/rasplay/MFRC522-python.git
cd MFRC522-python
7. Corrected scripts, in line 1 import RPi change.GPIO as GPIO import on pyA20.gpio as GPIO and comment lines 108, 109, 110 and 356
nano MFRC522.py
1 import pyA20.gpio as GPIO
108 #GPIO.setmode(GPIO.BOARD)
109 #GPIO.setup(22, GPIO.OUT)
110 #GPIO.output(self.NRSTPD, 1)
356 #GPIO.output(self.NRSTPD, 1)
8. Well, the team itself card reader
python read.py
read.py change to attached, will be read with the reader and gpio inputs. Can cut reader and to make only the gpio.
Sound 3.5 mm as output:
---------------------
apt-get install sox
cat << _EOF_ > /etc/asound.conf
pcm.!default {
type hw
card 0
}
ctl.!default {
type hw
card 0
}
_EOF_
amixer set-c 0 'Audio lineout' unmute
-------------