Adding support for up to 16 added temp sensors??? May 06, 2015 09:17AM |
Registered: 8 years ago Posts: 9 |
Re: Adding support for up to 16 added temp sensors??? May 06, 2015 09:24AM |
Registered: 9 years ago Posts: 4,977 |
Triffid Hunter's Calibration Guide | --> X <-- Drill for new Monitor | Most important Gcode. |
Re: Adding support for up to 16 added temp sensors??? May 06, 2015 09:25AM |
Registered: 8 years ago Posts: 9 |
Re: Adding support for up to 16 added temp sensors??? May 09, 2015 12:16PM |
Registered: 8 years ago Posts: 9 |
switch(temp_state) { case 0: // Prepare TEMP_0 #if defined(TEMP_0_PIN) && (TEMP_0_PIN > -1) #if TEMP_0_PIN > 7 ADCSRB = 1< -1) raw_temp_0_value += ADC; #endif #ifdef HEATER_0_USES_MAX6675 // TODO remove the blocking raw_temp_0_value = read_max6675(); #endif temp_state = 2; break; case 2: // Prepare TEMP_BED #if defined(TEMP_BED_PIN) && (TEMP_BED_PIN > -1) #if TEMP_BED_PIN > 7 ADCSRB = 1< -1) raw_temp_bed_value += ADC; #endif temp_state = 4; break; case 4: // Prepare TEMP_1 #if defined(TEMP_1_PIN) && (TEMP_1_PIN > -1) #if TEMP_1_PIN > 7 ADCSRB = 1< -1) raw_temp_1_value += ADC; #endif temp_state = 6; break; case 6: // Prepare TEMP_2 #if defined(TEMP_2_PIN) && (TEMP_2_PIN > -1) #if TEMP_2_PIN > 7 ADCSRB = 1< -1) raw_temp_2_value += ADC; #endif temp_state = 0; temp_count++; break; case 8: //Startup, delay initial temp reading a tiny bit so the hardware can settle. temp_state = 0; break; // default: // SERIAL_ERROR_START; // SERIAL_ERRORLNPGM("Temp measurement error!"); // break; }