プログラム

PWM点灯プログラム①

int LED_PIN = 12;(ピン番号)int tim = 0;int duty = 28;void setup() {// put your setup code here, to run once:Serial.begin(9800);pinMode( LED_PIN, OUTPUT );}void loop() {for(;;){tim = 0;// put your main code here, to run repeatedly:for(int i…