sunu icon

Uji 2 pwm generator

sunu | PRO | 04/25/19 10:18:24 AM UTC | 0 ⭐ | 771 👁️ | Never ⏰ | []
Arduino |

310 B

|

None

|

0 👍

/

0 👎

 
 
/*
 
Uji coba 2 PWM
 
 
*/
 
#define PWM_PIN_A 9
#define PWM_PIN_B 10
 
const uint8_t pwmValue01 = 0;
const uint8_t pwmValue02 = 255;
 
 
void setup(void){
    pinMode(PWM_PIN_A, OUTPUT);
    pinMode(PWM_PIN_B, OUTPUT);
 
}
 
 
void loop(void){
    analogWrite(PWM_PIN_A, 20);
    analogWrite(PWM_PIN_B, 200);
}

Comments