VIEWPixx Demo 1 -- Using a VIEWPixx as a Tachistoscope ============================================================== In this demo, we transform a VIEWPixx into a Tachistoscope, which is a device used to display an image for a very precise amount of time. Usually, a physical Tachistoscope has a shutter which opens or closes for a set time. We reproduce this by loading an image on the LCD, but turning the back-light off/on. When the back-light is off, the image cannot be seen, acting like a closed shutter. The back-light is controlled by digital out 15. We turn off the scanning back-light so that we have full control over it. This mode is called BacklightPulse: ``Datapixx('EnableDoutBacklightPulse');``. To turn the back-light on, we must set DOUT 15 to high. This is done by creating a waveform which goes from 0 to 0x8000 (or 0b1000 0000 0000 0000, or 32768) which turns on DOUT 15, and back to 0 to close it. .. literalinclude:: ../DatapixxToolbox/DatapixxDemos/DatapixxTscopeDemo.m :language: matlab :emphasize-lines: 17, 20-23, 35-42, 55, 57 :linenos: