Setting up a device in High-bit depth grey-scale mode.
You must first consider which device you have. In this example we will use a VIEWPixx3D.
from pypixxlib.viewpixx import VIEWPixx3D
# viewpixx and VIEWPixx3D would need to be replaced by the appropriate devices.
my_device = VIEWPixx3D() # Opens and initiates the device
my_device.setVideoMode('M16') # Set the right video mode
my_device.updateRegisterCache() # Update the device