def start_show(): import pycrafter6500 images = [] # images.append((numpy.asarray(PIL.Image.open("testimage.tif"))//129)) images.append((np.asarray(PIL.Image.open("testimage.tif")) // 129)) dlp = pycrafter6500.dmd() dlp.stopsequence() dlp.changemode(3) exposure = [1000000] * 30 dark_time = [0] * 30 trigger_in = [False] * 30 trigger_out = [1] * 30 dlp.defsequence(images, exposure, trigger_in, dark_time, trigger_out, 0) dlp.startsequence()
# # print(" {0}".format(inertia[2,:])) # # # Accessing individual points (concatenation of v0, v1 and v2 in triplets) # figure = plt.figure() # axes = mplot3d.Axes3D(figure) # # # Load the STL files and add the vectors to the plot # axes.add_collection3d(mplot3d.art3d.Poly3DCollection(your_mesh.vectors)) # print(your_mesh.vectors[1]) # # Auto scale to the mesh size # scale = your_mesh.points.flatten() # axes.auto_scale_xyz(scale, scale, scale) # # Show the plot to the screen # plt.show() controller = pycrafter6500.dmd() # controller.idle_on() # #sets the DMD to idle mode # controller.idle_off() # #wakes the DMD from idle mode # controller.standby() # #sets the DMD to standby # controller.wakeup() # #wakes the DMD from standby # controller.reset() # #resets the DMD controller.stopsequence() controller.changemode(3) #changes the dmd operating mode: #mode=0 for normal video mode #mode=1 for pre stored pattern mode
import pycrafter6500 import numpy import PIL.Image images = [] images.append((numpy.asarray(PIL.Image.open("testimage.tif")) // 129)) dlp = pycrafter6500.dmd() dlp.stopsequence() dlp.changemode(3) exposure = [1000000] * 30 dark_time = [0] * 30 trigger_in = [False] * 30 trigger_out = [1] * 30 dlp.defsequence(images, exposure, trigger_in, dark_time, trigger_out, 0) dlp.startsequence()