为什么theese首先注册为零?

时间:2016-10-04 19:17:29

标签: c++ c arduino

看看快速PWM模式,我找到了关于如何设置它的示例:

Range.Address Property

here

在磁性levitaiton代码示例中,作者想要设置定时器快速pwm模式,但是他们通过将寄存器定义为0来启动,如下所示:

pinMode(3, OUTPUT);
pinMode(11, OUTPUT);
TCCR2A = _BV(COM2A1) | _BV(COM2B1) | _BV(WGM21) | _BV(WGM20);
TCCR2B = _BV(CS22);

为什么?

0 个答案:

没有答案