293 Star 1.6K Fork 383

GVP合宙Luat / LuatOS

 / 详情

[🐛Bug]: [Air103]pwm.open(channel, period, pulse, pnum, precision) 函数

待办的
创建于  
2023-09-21 09:59

描述一下这个bug / Describe the bug

pwm.open(channel, period, pulse, pnum, precision)
发送固定个数脉冲之前会产生一个1uS的短脉冲

复现步骤 / To Reproduce

pwm.open(30, 2000, 50,10) -- 频率1000hz, 占空比50 10个脉冲

在发送10个脉冲之前会产生一个1uS的短脉冲

如果正常,应该是什么样 / Expected behavior

pwm.open(30, 2000, 50,10)
只发送10个脉冲,没有多余脉冲产生

截图 / Screenshots

10个脉冲之前会产生1个1uS的短脉冲

日志 / Logs

PACK包版本 / Version

LuatOS@AIR103 base 22.12 bsp V0017 32bit

验证

  • 检查过该问题,之前没有人提过 / Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • 提供了最小可复现工程或详细的复现步骤,确保开发者可以复现 / The provided reproduction is a minimal reproducible example of the bug.
  • 已经提供了完整的报错信息、日志、截图,没有经过删减。

评论 (0)

活化石 创建了任务
Wendal 修改了标题
Wendal 修改了描述
展开全部操作日志

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(1)
Lua
1
https://gitee.com/openLuat/LuatOS.git
git@gitee.com:openLuat/LuatOS.git
openLuat
LuatOS
LuatOS

搜索帮助