找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

这个程序报的语法错误,不明白怎么改error C25: syntax error near 'float'

查看数: 1504 | 评论数: 3 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2023-7-9 15:16

正文摘要:

error C25: syntax error near 'float' 求大佬们看看

回复

ID:155507 发表于 2023-7-9 22:51
改了这个。

  PWMA_CCR1H = 100;
  PWMA_CCR1L = 200;         //设置占空比时间
  PWMA_CCR3H = 100;
  PWMA_CCR3L = 200;         //设置占空比时间

我的没有报错误啊。

Rebuild target 'LQ_Lib'
compiling LQ_GPIO_LED.c...
compiling LQ_GPIO_KEY.c...
compiling LQ_OLED096.c...
compiling LQ_IIC_Gyro.c...
compiling LQ_I2C_9AX.c...
compiling ANO_DT.c...
compiling LQ_UART.c...
compiling LQ_Encoder.c...
compiling LQ_TIMER.c...
compiling LQ_MotorServo.c...
compiling LQ_ADC.c...
compiling LQ_GPIO_EXIT.c...
compiling LQ_SPI_soft.c...
compiling LQ_SOFTI2C.c...
compiling LQ_GPIO.c...
compiling main.c...
compiling balance_algorthm.c...
compiling attitude_algorithm.c...
linking...
Program Size: data=8.1 edata+hdata=595 xdata=0 const=4448 code=4704
creating hex file from ".\Objects\LQ_STC32lib"...
".\Objects\LQ_STC32lib" - 0 Error(s), 0 Warning(s).
Build Time Elapsed:  00:00:12
ID:1034262 发表于 2023-7-9 19:19
语法错误,仔细查找。
ID:883242 发表于 2023-7-9 17:24
错误附近的代码都被你给注释掉了,谁知道哪些代码应该被注释,哪些是使用的?

小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表