We just extend the pwm_arduino example by reading the PWM signal on an other pin with the help of the analogRead() method. So we just need to connect the two pins with a jumper wire.