introduce analogWritens an tone functions

In the analogWrite function you can setting dutycycle and period in
nanoseconds. With the tone function you can work with buzzer.