Exemplo n.º 1
0
void ICACHE_FLASH_ATTR
plug_pwm_init() {
	// TODO: add your object init code here.
	peri_jdq_init(14);

	//pwm init
	struct PWM_APP_PARAM pwm_param;
	struct PWM_INIT pwm_init;
	pwm_param.pwm_freq=25000;
	pwm_param.pwm_duty[0]=0;

	pwm_init.io_num=1;
	pwm_init.io_id[0]=15;

	peri_plug_pwm_init(pwm_param, pwm_init);
}
Exemplo n.º 2
0
void ICACHE_FLASH_ATTR
plug_init() {
	// TODO: add your object init code here.
	peri_jdq_init(12);

}