fixed teensy light off-mode and added linearization