The digitalRead is used to read the HIGH or LOW state of a pin. We need to use the analogWrite() to set the duty cycle of a PWM (Pulse Width Modulation) pulse.
確定! 回上一頁