new version i think March 28, 2011 09:49AM |
Registered: 14 years ago Posts: 800 |
Re: new version i think March 29, 2011 12:20AM |
Registered: 13 years ago Posts: 30 |
Re: new version i think March 29, 2011 12:57PM |
Registered: 15 years ago Posts: 478 |
Re: new version i think March 30, 2011 02:55AM |
Registered: 13 years ago Posts: 30 |
Re: new version i think March 30, 2011 10:21AM |
Registered: 14 years ago Posts: 800 |
Re: new version i think April 02, 2011 03:39AM |
Registered: 15 years ago Posts: 478 |
Re: new version i think April 02, 2011 09:39AM |
Registered: 14 years ago Posts: 800 |
Re: new version i think April 02, 2011 01:10PM |
Registered: 15 years ago Posts: 478 |
case 105: // M105 Serial.print("T:"); Serial.print( analog2temp(analogRead(TEMP_0_PIN)) ); Serial.print(" B:"); Serial.println( analog2temp(analogRead(BED_TEMP_0_PIN)) );
case 105: // M105 Serial.print("T:"); Serial.println( analog2temp(analogRead(TEMP_0_PIN)) ); Serial.print("B:"); Serial.println( analog2temp(analogRead(BED_TEMP_0_PIN)) );
// temperature token: } else if ( s.substr(0,2) == "T:" ) { temp_param = s.substr(2,s.length()); // Reduce re-draws by only updating the GUI on a real change const char *old_value = gui->CurrentTempText->value(); if (!old_value || strcmp (temp_param.c_str(), old_value)) gui->CurrentTempText->value(temp_param.c_str()); // bed temperature token: } else if ( s.substr(0,2) == "B:" ) { bedtemp_param = s.substr(2,s.length());
{ Fl_Light_Button SwitchHeatOnButton { label {heat on} callback {MVC->SwitchHeat(o->value(), TargetTempText->value());} xywh {805 194 85 30} } Fl_Value_Input TargetTempText { label Target callback {MVC->SetTargetTemp(o->value());} xywh {1175 200 90 24} maximum 300 value 200 } Fl_Output CurrentTempText { label Current xywh {985 199 90 26} } } Fl_Group {} { label Bed open xywh {775 235 495 41} box ENGRAVED_FRAME color 39 align 4 } { Fl_Light_Button BedHeatOnButton { label {bed heat on} callback {MVC->SwitchBedHeat(o->value(), TargetBedTempText->value());} xywh {805 241 105 28} selection_color 2 } Fl_Output CurrentBedTempText { label Current >>>>> Missing call back line goes here <<<<< xywh {985 244 90 26} } Fl_Value_Input TargetBedTempText { label Target callback {MVC->SetBedTargetTemp(o->value());} xywh {1175 246 90 24} maximum 300 value 200 }
Re: new version i think April 29, 2011 01:35PM |
Registered: 13 years ago Posts: 12 |