Closed hanke-cnc closed 1 year ago
I found a little trace in driver_opts.h and then no progress
$pins
will tell you which pins are assigned. Be aware that the keypad plugin can use I2C or UART comms depending on the configuration in _my_machine.h__:
//#define MPG_ENABLE 1 // Enable MPG interface. Requires serial port and one handshake pin unless
// KEYPAD_ENABLE is set to 2 when mode switching is done by the CMD_MPG_MODE_TOGGLE (0x8B)
// command character. Set both MPG_ENABLE and KEYPAD_ENABLE to 2 to use a handshake pin anyway.
//#define KEYPAD_ENABLE 1 // Set to 1 for I2C keypad, 2 for other input such as serial data. If KEYPAD_ENABLE is set to 2
// and MPG_ENABLE is uncommented then a serial stream is shared with the MPG.
$pins
will tell you which pins are assigned. Be aware that the keypad plugin can use I2C or UART comms depending on the configuration in _my_machine.h__://#define MPG_ENABLE 1 // Enable MPG interface. Requires serial port and one handshake pin unless // KEYPAD_ENABLE is set to 2 when mode switching is done by the CMD_MPG_MODE_TOGGLE (0x8B) // command character. Set both MPG_ENABLE and KEYPAD_ENABLE to 2 to use a handshake pin anyway. //#define KEYPAD_ENABLE 1 // Set to 1 for I2C keypad, 2 for other input such as serial data. If KEYPAD_ENABLE is set to 2 // and MPG_ENABLE is uncommented then a serial stream is shared with the MPG.
$pins
will tell you which pins are assigned. Be aware that the keypad plugin can use I2C or UART comms depending on the configuration in _my_machine.h__://#define MPG_ENABLE 1 // Enable MPG interface. Requires serial port and one handshake pin unless // KEYPAD_ENABLE is set to 2 when mode switching is done by the CMD_MPG_MODE_TOGGLE (0x8B) // command character. Set both MPG_ENABLE and KEYPAD_ENABLE to 2 to use a handshake pin anyway. //#define KEYPAD_ENABLE 1 // Set to 1 for I2C keypad, 2 for other input such as serial data. If KEYPAD_ENABLE is set to 2 // and MPG_ENABLE is uncommented then a serial stream is shared with the MPG.
Thank you, I found it in serial.c, Also using $pins with your help, same result But this also caused a problem. I never knew the powerful command $pins. It seems that it is not written in the wiki. (Maybe I am the only one who does not know?????????), your source The code seems to have many system commands
Info about $pins
, and $help
, added to the Wiki.
Compiled an error and can run normally, but I don't know that the default PA9 PA10 of KeyPad is occupied by GRBL. Which serial port will he use?