Data Sheet
4/27/2018 OpenCR1.0
http://emanual.robotis.com/docs/en/parts/controller/opencr10/ 33/50
This is an example of PWM output on all six pins.
7. 4. 2. Result
int pwm_pins[6] = { 3, 5, 6, 9, 10, 11 };
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
int i;
static uint8_t pwm_out = 0;
for( i=0; i<6; i++ )
{
analogWrite(pwm_pins[i], pwm_out++);
}
delay(100);
}
OpenCR1.0
Back to Top ▲