#includemain.h#defineSLAVE_ADDRESS0x05#defineSCL0#defineSDA1#defineTWI_PORTPORTC#defineTWI_DIRDDRC//
#includemain.hvoidPWM_Ctrl(signedchari)//脉冲宽度设置{}voidOpenTime_Ctrl(signedchari)//开时间设置{}voidClose…
#includemain.h#defineSLAVE_ADDRESS0x04#defineSLAVE_WRITE_ADDRESS(SLAVE_ADDRESS1)
includemain(){P2=0x55;P1口初始值EA=1;全局中断开EX0=1;外部中断0开IT0=1;边沿触发while(1){}}voidISR_Key(void
#includestm32f10x_lib.h#includemain.hTIM_TimeBaseInitTypeDefTIM_TimeBaseStructure;GPIO_InitTypeDefGP
在线咨询:
邮箱: kf@86ic.com