tweaks:
 * use only 4 GPIOs, replaced GPIO 21 with 22 (21 was giving no output)
 * changed control pipe path to /var/run/pwm
 * SAMPLE_US = CYCLE_TIME_US / 1000 (other ratios did not work for me)
script pwmtest to set all pins to same output value