The second argument to digitalWrite() is either HIGH or LOW. Neither of those values are 128 or 255. I don't know why you are trying to adjust PWM frequency, when pin 8 is not a PWM pin. At least not on a 328-based Arduino.
The second argument to digitalWrite() is either HIGH or LOW. Neither of those values are 128 or 255. I don't know why you are trying to adjust PWM frequency, when pin 8 is not a PWM pin. At least not on a 328-based Arduino.