#include" TimerOne.h"
void setup() {
pinMode(9,OUTPUT);
Timer1.initialize(20); //初始化timer1,并设置为50kHz
Timer1.pwm(9,256); //在引脚9上设置pwm,占空比为25%
Timer1.pwm(10,256); //在引脚9上设置pwm,占空比为25% }
void loop() {
//你的节目在这里...... }
根据代码,To signal to image Phase shif
如何修改代码?