Added check duplicated function for one pin
Use mmap
Added PWM support