Dynamic VR
Problem:
Normally PWM range is set to 40000 to get fine grained control over light intensity. Therefore static VR and time dependent stimulations are coded in uint16 number space with 65535 being 100%.
For the dynamic virtual realities it's to memory expensive to use uint16. To only use half the amount of space my dynamic arena is in uint8. Problem: Range of PWM can't be changed easily. User has to go into source code, change constant called PWM_RANGE.
Think of a better way of implementing this - at the moment it doesn't work out of the box - neither with int16 nor int8!