⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c

📁 全国智能车大赛电机的PWM调试源代码 可以设置pwm的占空比
💻 C
字号:
/*
 * pwm output test project
 */
 
#include <hidef.h>            /* common defines and macros */
#include <mc9s12dg128.h>      /* derivative information */

#include "pwm.h"

#pragma LINK_INFO DERIVATIVE "mc9s12dg128b"

void main(void) {
  helm_motor_pwm_init();				/* 舵机pwm驱动初始化 */
  EnableInterrupts;
  helm_motor_test();            /* 舵机测试 */
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -