~ubuntu-branches/ubuntu/trusty/psychtoolbox-3/trusty-proposed

« back to all changes in this revision

Viewing changes to Psychtoolbox/PsychHardware/BitsPlusToolbox/bitsEncodeDIO.m

  • Committer: Package Import Robot
  • Author(s): Yaroslav Halchenko
  • Date: 2013-11-19 23:34:50 UTC
  • mfrom: (3.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20131119233450-f7nf92vb8qavjmk8
Tags: 3.0.11.20131017.dfsg1-3
Upload to unsable since fresh glew has arrived to sid!

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
    % gamma is incorrectly mapped from [0, 255/256] instead of [0, 1].
47
47
    % If you are having trouble using the DIO, try uncommenting the 2nd line
48
48
    % below.
49
 
    Screen('LoadNormalizedGammaTable', windowPtr, linspace(0, 255/256, 256)' * ones(1, 3));
50
 
    %Screen('LoadNormalizedGammaTable', windowPtr, linspace(0, 1, 256)' * ones(1, 3));
 
49
    LoadIdentityClut(windowPtr);
51
50
end
52
51
 
53
52
% Call common encoder routine to create T-Lock image matrix: