Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am pechfunk on github.
  • I am pechfunk (https://keybase.io/pechfunk) on keybase.
  • I have a public key ASCuY9VBjRe1pewryRjWtkmOdDT-xJT6pZiVurAdY7PCDgo

To claim this, I am signing this object:

@pechfunk
pechfunk / just_konrads_adf.py
Created April 27, 2018 20:06
Example pyinsane2 program to scan using duplex ADF
import sys
import pyinsane2
pyinsane2.init()
try:
devices = pyinsane2.get_devices()
assert(len(devices) > 0)
device = devices[0]
print("I'm going to use the following scanner: %s" % (str(device)))