Melzi motherboad - M42 Bed fan command hangs controller April 13, 2017 02:18AM |
Registered: 11 years ago Posts: 7 |
Re: Melzi motherboad - M42 Bed fan command hangs controller April 13, 2017 04:22AM |
Admin Registered: 17 years ago Posts: 7,881 |
Re: Melzi motherboad - M42 Bed fan command hangs controller April 13, 2017 05:00AM |
Registered: 11 years ago Posts: 7 |
Re: Melzi motherboad - M42 Bed fan command hangs controller April 13, 2017 07:20AM |
Registered: 11 years ago Posts: 7 |
case 42: //M42 -Change pin status via gcode if (code_seen('S')) { int pin_status = code_value(); if (code_seen('P') && pin_status >= 0 && pin_status <= 255) { int pin_number = code_value(); for(int8_t i = 0; i < (int8_t)sizeof(sensitive_pins); i++) { if (sensitive_pins == pin_number) { pin_number = -1; break; } } if (pin_number > -1) { pinMode(pin_number, OUTPUT); digitalWrite(pin_number, pin_status); analogWrite(pin_number, pin_status); } } } break;
pinMode(pin_number, OUTPUT); digitalWrite(pin_number, pin_status); analogWrite(pin_number, pin_status);
Re: Melzi motherboad - M42 Bed fan command hangs controller April 13, 2017 08:26AM |
Registered: 11 years ago Posts: 7 |
Re: Melzi motherboad - M42 Bed fan command hangs controller April 13, 2017 09:04AM |
Registered: 11 years ago Posts: 7 |
Re: Melzi motherboad - M42 Bed fan command hangs controller April 14, 2017 09:17AM |
Admin Registered: 17 years ago Posts: 7,881 |