Changeset 11534 for main/pyfprint/trunk
- Timestamp:
- 24 Mar 2014, 15:33:03 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/pyfprint/trunk/src/fprint.py
r11530 r11534 159 159 160 160 discover_devs = lib.fp_discover_devs 161 discover_devs.restype = ctypes.POINTER( 162 ctypes.POINTER(fp_dscv_dev)) 163 164 # Library 165 fp_init = lib.fp_init 166 fp_exit = lib.fp_exit 167 168 lib.fp_set_debug.argtypes = [ctypes.c_int,] 169 fp_set_debug = lib.fp_set_debug 161 170 162 171 163 172 if __name__ == '__main__': 164 print discover_devs() 173 fp_init() 174 devs = discover_devs() 175 176 if isinstance(devs, ctypes.POINTER(ctypes.c_void_p)): 177 print "No device detected!" 178 else: 179 print "Something found: " 180 print devs 165 181 import pdb; pdb.set_trace() 182 fp_exit()
Note: See TracChangeset for help on using the changeset viewer.