this commit is trying to get the photodiode and grating cycle to be synched up. the offset per frame should now be a very even number, and i now flash white under the photodiode when, and only when, the grating is at phase 0