WIP add period to pwmWrite calls and validate always has a value.