void loop() {. 9. for (int i = 0; i <= 255; i++) {. 10. analogWrite(PWMpin, i);. 11. delay(10);. 12. } 13. } Source: www.arduino.cc.
確定! 回上一頁