Skip to content

Commit 2848634

Browse files
committed
Updating for RPi HW UART
1 parent 4e6ade5 commit 2848634

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

examples/fingerprint_simpletest.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@
99

1010
uart = busio.UART(board.TX, board.RX, baudrate=57600)
1111

12-
# If using with a computer such as Linux/RaspberryPi, Mac, Windows...
12+
# If using with a computer such as Linux/RaspberryPi, Mac, Windows with USB/serial converter:
1313
#import serial
1414
#uart = serial.Serial("/dev/ttyUSB0", baudrate=57600, timeout=1)
1515

16+
# If using with Linux/Raspberry Pi and hardware UART:
17+
#import serial
18+
#uart = serial.Serial("/dev/ttyS0", baudrate=57600, timeout=1)
19+
1620
finger = adafruit_fingerprint.Adafruit_Fingerprint(uart)
1721

1822
##################################################

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
Adafruit-Blinka
2+
pyserial

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
author='Adafruit Industries',
3535
author_email='circuitpython@adafruit.com',
3636

37-
install_requires=['Adafruit-Blinka'],
37+
install_requires=['Adafruit-Blinka', 'pyserial'],
3838

3939
# Choose your license
4040
license='MIT',

0 commit comments

Comments
 (0)