Commit d98a91f5 authored by Michael Murtaugh's avatar Michael Murtaugh

remove gpio from take_photo

parent 5be97480
Pipeline #434 canceled with stages
......@@ -7,6 +7,7 @@ import cv2
from PIL import Image, ImageOps
# from escpos.exceptions import USBNotFoundError
from escpos.printer import Usb, Serial
from time import sleep
# brendan's
......@@ -17,8 +18,6 @@ def take_photo(camera, rotate, width, height, sleept=2.0, iso=0):
print ("take photo", file=sys.stderr)
if camera == -1:
import picamera, picamera.array
import RPi.GPIO as gpio
gpio.output(4, gpio.HIGH)
with picamera.PiCamera(resolution=(width, height)) as camera:
# camera.resolution = ()
# camera.iso = iso
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment