|
|
|
@ -50,12 +50,12 @@ class Photography(Bureau):
|
|
|
|
|
# set pins and pullups for switches
|
|
|
|
|
gpio.setcfg(self.landscape_pin, gpio.INPUT)
|
|
|
|
|
gpio.pullup(self.landscape_pin, gpio.PULLUP)
|
|
|
|
|
gpio.setcfg(self.a3_pin, gpio.INPUT)
|
|
|
|
|
gpio.pullup(self.a3_pin, gpio.PULLUP)
|
|
|
|
|
gpio.setcfg(self.a4_pin, gpio.INPUT)
|
|
|
|
|
gpio.pullup(self.a4_pin, gpio.PULLUP)
|
|
|
|
|
gpio.setcfg(self.a5_pin, gpio.INPUT)
|
|
|
|
|
gpio.pullup(self.a5_pin, gpio.PULLUP)
|
|
|
|
|
gpio.setcfg(self.a6_pin, gpio.INPUT)
|
|
|
|
|
gpio.pullup(self.a6_pin, gpio.PULLUP)
|
|
|
|
|
|
|
|
|
|
# make sure tmp dir exists
|
|
|
|
|
tmpdir = "/tmp/webcam"
|
|
|
|
|