in the function that is activated when the button is pressed, I start generating pwm on port 27 using softPwmWrite (27, 250); in the main function using the interrupt wiringPiIS