Sets period when creating a new pwm pin.
Fixed incoorectly named attribute.
Only set period on pwm pin if board gen == 1
Merge pull request #3 from hybridgroup/pwm-period-upd

Pwm period upd