[gnea/grbl-Mega PR#120] Update cpu_map.h

未分类 bolang 4个月前 (10-15) 27次浏览

Issue #120 | 状态: 进行中 | 作者: manikandan00 | 创建时间: 2020-04-10



评论 (2)

#1 – drf5n 于 2022-04-10

This won’t work right:


#define STEP_DDR DDRA
#define STEP_PORT PORTA
#define STEP_PIN PINA
#define XSTEPBIT 54 // MEGA2560 Digital Pin 24
#define YSTEPBIT 60// MEGA2560 Digital Pin 25
#define ZSTEPBIT 4 // MEGA2560 Digital Pin 26

The bits should be within the range 0-7 of the port, not the pin numbers.

For instance, on the mega digital pin 24 is PA2 per https://www.electronicshub.org/arduino-mega-pinout/ so it’s port A, bit 2, and won’t work as PORTA bit 54


#2 – fra589 于 2022-04-10

I confirm that it will not work.
Moreover, you should not make a pull request for a modification that only interests you.


原始Issue: https://github.com/gnea/grbl-Mega/pull/120

喜欢 (0)