8258的PWM3的设置问题

Discussions on BLE related products, including standard BLE devices, BLE mesh, and Apple HomeKit products
Post Reply
dadou_arsen
Posts: 4
Joined: Thu Jul 20, 2017 9:41 am

Mon Jul 27, 2020 11:16 am

我设置8258的PWM3(PD2)为PWM输出,但是只有1.8v的电压输出,这是为什么呢?

Code: Select all

	
	#define ColorTemperatureN  3
	#define TempPinN     GPIO_PD2
	 
	pwm_set_mode(ColorTemperatureN, 0, 0);
	pwm_set(ColorTemperatureN  ,PWM_FRE, PWM_FRE);
	pwm_start(ColorTemperatureN );
	gpio_set_output_en(TempPinN, 1);
Post Reply