You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the problem.
When compiling the following code for Mega 2560 again with this version of the IDE, the execution results are problematic. When the following code is compiled for the UNO, the execution results are as expected. When the following code was compiled for Mega 2560 using the 1.8.6 version of the IDE, the results were also as expected. So I suspect that there is a bug in that version of the IDE, but I don't know exactly why.
问题描述:
在用该版本 IDE 给 Mega 2560编译下列代码时,执行结果出现了问题。而给 UNO 编译下列代码时,执行结果与预期一致。再使用1.8.6版本IDE 给 Mega 2560编译下列代码时,执行结果也和预期一致。所以我怀疑是该版本的IDE存在BUG,但是我不知道具体的原因。
code function:The following program is used to control the operation of two motors, the drive chip is L298N, the correct implementation should be that both wheels can be turned and analogWrite(pin,value) can control the rotation speed of both wheels.
The fault execution is that only one wheel is spinning and the other wheel is stationary.
代码作用:下面的程序时用来控制两个电机工作的,驱动芯片是L298N。正确的执行情况应该是:两个轮子都能够转动,并且analogWrite(pin,value)可以控制两个轮子的转动速度。
故障执行情况是:只有一个轮子在转动,另一个轮子静止。
Description of the problem.
When compiling the following code for Mega 2560 again with this version of the IDE, the execution results are problematic. When the following code is compiled for the UNO, the execution results are as expected. When the following code was compiled for Mega 2560 using the 1.8.6 version of the IDE, the results were also as expected. So I suspect that there is a bug in that version of the IDE, but I don't know exactly why.
问题描述:
在用该版本 IDE 给 Mega 2560编译下列代码时,执行结果出现了问题。而给 UNO 编译下列代码时,执行结果与预期一致。再使用1.8.6版本IDE 给 Mega 2560编译下列代码时,执行结果也和预期一致。所以我怀疑是该版本的IDE存在BUG,但是我不知道具体的原因。
code function:The following program is used to control the operation of two motors, the drive chip is L298N, the correct implementation should be that both wheels can be turned and analogWrite(pin,value) can control the rotation speed of both wheels.
The fault execution is that only one wheel is spinning and the other wheel is stationary.
代码作用:下面的程序时用来控制两个电机工作的,驱动芯片是L298N。正确的执行情况应该是:两个轮子都能够转动,并且analogWrite(pin,value)可以控制两个轮子的转动速度。
故障执行情况是:只有一个轮子在转动,另一个轮子静止。
The text was updated successfully, but these errors were encountered: