README.md 881 Bytes
Newer Older
Michael Murtaugh's avatar
code  
Michael Murtaugh committed
1 2 3 4 5


    apt get install python-opencv
    pip install imutils picamera python-escpos

Michael Murtaugh's avatar
Michael Murtaugh committed
6 7 8 9


<https://github.com/adafruit/Python-Thermal-Printer/blob/master/Adafruit_Thermal.py>

Michael Murtaugh's avatar
Michael Murtaugh committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Hardware setup
-------------------
Using the "BCM" pin ordering
Pins 1 + 2 are the top pins when viewing pi sd card up / usb ports down -- gpio pins on the top right of profile.

Wiring
=============

Shutdown Button
-----------------
Pins 14 & 16 (7th & 8th in case-side) (gnd + gpio23)

in boot/config.txt
dtoverlay=gpio-shutdown,gpio_pin=23


Michael Murtaugh's avatar
Michael Murtaugh committed
26

Michael Murtaugh's avatar
Michael Murtaugh committed
27 28 29 30 31 32 33 34 35 36 37 38 39
Flash on Pi
--------------
GPIO -Purple -- Pin7: GPIO4
GND   Gray --- Pin 6 : Ground
GND   White? -- not connected
5V -- Black -- Pin 2: 5V

Button
-----------
35 Yellow GPIO19
37 Green GPIO26
39 Blue GND
(button 2 is purple, gray, white ipv yellow green blue)
Michael Murtaugh's avatar
Michael Murtaugh committed
40
(last three on second row)
Michael Murtaugh's avatar
Michael Murtaugh committed
41 42 43 44 45 46

Console size
-----------------
    sudo dpkg-reconfigure console-setup