-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix and follow-up the PR #4955 (PINS_DEBUGGING and M43: Read pin states), etc #4974
Conversation
Please delete the "if" line 39 in pinsDebug.h - When M43 is enabled it's stopping it from compiling. Should say: |
It looks like M43 W shuts everything down except thermal management. I was expecting to be able to move the motors, etc. while monitoring the pins. Just wondering if that's the expected behavior. It would be nice if M43 output a list of the pins along with their names. I'm thinking that adding something like the following just before or after initializing the pinstate[] array would be useful:
|
That is certainly true, |
I just saw how the pin list is generated - OUCH I was wondering why some pins came back as unused when I knew differently. I had assumed you had a nice automated way of grabbing the names of the defined pins but it's a manually created list. Manually maintaining the pin name list could be a real nightmare. Out of curiosity I used grep to scan the pins files and Excel to weed out the trash to come up with a list of 176 possible pin names. It's attached if you want it. If you want it in a different format just let me know. I can use Excel to generate the "#if ... pin_say .. #endif" sequence for this list. |
By the way, I'm sorry but I'm not a member of the Marlin development team... |
Same here |
#define X_STEP_PIN 0 | ||
#define X_DIR_PIN 1 | ||
#define X_ENABLE_PIN 23 | ||
#define X_MS1_PIN 25 | ||
#define X_MS2_PIN 26 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to keep the microstepping pins in their own section. Moving away from grouping things by axis.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand it, and I've done it to other pins files also.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the way, when contributor update the commented point, review should be closed automatically by GitHub...
But from my side (Win10 + Chrome), this review is still opened for some reason.
Here's the pinsDebug.h file with the added pin names. It cleared up some of the unused designations on my system. It's not perfect. On my system it says that pins 66 & 67 are unused but the sensitive pins list says they're protected. |
I've got my "monitor endstops & toggle LED while allowing normal system operation" routine working. Is it appropriate to discuss it now (in this thread) or should I wait until this pull request is merged and then open up a different thread? |
Um... I think that waiting and opening a new PR is better. |
Will do. Hope your changes go smoothly. |
・More ANALOG NUMBERING to Analog Input ・Add comment header to all the section of all the pins files ・Sort sections as follows: 1. Some special definitions (USBCON, LARGE_FLASH, etc) 2. Servos 3. Limit Switches 4. Z Probe 5. Steppers 6. Temperature Sensors 7. Heaters / Fans 8. Misc. Functions 9. LCD / Controller ・Move MAX6675_SS into "Temperature Sensors" section ・Adjust spacing
Fix and follow-up the PR #4955 (PINS_DEBUGGING and M43: Read pin states), etc
・Fix compilation errors when
PINS_DEBUGGING
is enablederror message
・Fix compilation error when both
EMERGENCY_PARSER
andULTIPANEL
are enablederror message
・More "ANALOG NUMBERING" to "Analog Input"
・Add comment header to all the section of all the pins files
・Sort sections as follows:
USBCON
,LARGE_FLASH
, etc)・Move
*_MS*_PIN
away from grouping things by axis to own subsection・Move
MAX6675_SS
into "Temperature Sensors" section・Adjust spacing