Repetier 0.92 Case Light Pin Menu bugy January 10, 2015 02:03PM |
Registered: 10 years ago Posts: 23 |
Re: Repetier 0.92 Case Light Pin Menu bugy January 10, 2015 09:14PM |
Registered: 10 years ago Posts: 23 |
Re: Repetier 0.92 Case Light Pin Menu bugy January 11, 2015 06:19AM |
Registered: 12 years ago Posts: 2,705 |
#if CASE_LIGHTS_PIN >= 0 case UI_ACTION_LIGHTS_ONOFF: TOGGLE(CASE_LIGHTS_PIN); UI_STATUS(UI_TEXT_LIGHTS_ONOFF); break; #endif
Re: Repetier 0.92 Case Light Pin Menu bugy January 11, 2015 09:47AM |
Registered: 10 years ago Posts: 23 |
unfortunately notQuote
Seems to be a simple case.
#if CASE_LIGHTS_PIN > 0)
Re: Repetier 0.92 Case Light Pin Menu bugy January 11, 2015 10:32AM |
Registered: 12 years ago Posts: 2,705 |
#if CASE_LIGHTS_PIN >= 0 SET_OUTPUT(CASE_LIGHTS_PIN); WRITE(CASE_LIGHTS_PIN, CASE_LIGHT_DEFAULT_ON); #endif // CASE_LIGHTS_PIN
Re: Repetier 0.92 Case Light Pin Menu bugy January 11, 2015 10:53AM |
Registered: 10 years ago Posts: 23 |
//////////////////FIX THIS////////////// #ifndef __AVR_ATmega1280__ #ifndef __AVR_ATmega2560__ #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu. #endif #endif // uncomment one of the following lines for RAMPS v1.3 or v1.0, comment both for v1.2 or 1.1 // #define RAMPS_V_1_3 // #define RAMPS_V_1_0 #ifdef RAMPS_V_1_3 #define ORIG_X_STEP_PIN 54 #define ORIG_X_DIR_PIN 55 #define ORIG_X_ENABLE_PIN 38 #define ORIG_X_MIN_PIN 3 #define ORIG_X_MAX_PIN 2 #define ORIG_Y_STEP_PIN 60 #define ORIG_Y_DIR_PIN 61 #define ORIG_Y_ENABLE_PIN 56 #define ORIG_Y_MIN_PIN 14 #define ORIG_Y_MAX_PIN 15 #define ORIG_Z_STEP_PIN 46 #define ORIG_Z_DIR_PIN 48 #define ORIG_Z_ENABLE_PIN 62 #define ORIG_Z_MIN_PIN 18 #define ORIG_Z_MAX_PIN 19 #define ORIG_E0_STEP_PIN 26 #define ORIG_E0_DIR_PIN 28 #define ORIG_E0_ENABLE_PIN 24 #define ORIG_E1_STEP_PIN 36 #define ORIG_E1_DIR_PIN 34 #define ORIG_E1_ENABLE_PIN 30 #define SDPOWER -1 #define SDSS 53 #define SDCARDDETECT 49 #define LED_PIN 13 #define ORIG_FAN_PIN 9 #define ORIG_PS_ON_PIN 12 #define CASE_LIGHTS_PIN 1 #define HEATER_0_PIN 10 #define HEATER_1_PIN 8 #define HEATER_2_PIN 9 #define TEMP_0_PIN 13 // ANALOG NUMBERING #define TEMP_1_PIN 14 // ANALOG NUMBERING #define TEMP_2_PIN 15 #define E0_PINS ORIG_E0_STEP_PIN,ORIG_E0_DIR_PIN,ORIG_E0_ENABLE_PIN, #define E1_PINS ORIG_E1_STEP_PIN,ORIG_E1_DIR_PIN,ORIG_E1_ENABLE_PIN, #else // RAMPS_V_1_1 or RAMPS_V_1_2 as default #define ORIG_X_STEP_PIN 26 #define ORIG_X_DIR_PIN 28 #define ORIG_X_ENABLE_PIN 24 #define ORIG_X_MIN_PIN 3 #define ORIG_X_MAX_PIN -1 //2 #define ORIG_Y_STEP_PIN 38 #define ORIG_Y_DIR_PIN 40 #define ORIG_Y_ENABLE_PIN 36 #define ORIG_Y_MIN_PIN 16 #define ORIG_Y_MAX_PIN -1 //17 #define ORIG_Z_STEP_PIN 44 #define ORIG_Z_DIR_PIN 46 #define ORIG_Z_ENABLE_PIN 42 #define ORIG_Z_MIN_PIN 18 #define ORIG_Z_MAX_PIN -1 //19 #define ORIG_E0_STEP_PIN 32 #define ORIG_E0_DIR_PIN 34 #define ORIG_E0_ENABLE_PIN 30 #define SDPOWER 48 #define SDSS 53 #define LED_PIN 13 #define ORIG_PS_ON_PIN -1 //#define SCL 21 //#define SDA 20 #define E0_PINS ORIG_E0_STEP_PIN,ORIG_E0_DIR_PIN,ORIG_E0_ENABLE_PIN, #define E1_PINS #ifdef RAMPS_V_1_0 // RAMPS_V_1_0 #define HEATER_0_PIN 12 // RAMPS 1.0 #define HEATER_1_PIN -1 // RAMPS 1.0 #define ORIG_FAN_PIN 11 // RAMPS 1.0 #else // RAMPS_V_1_1 or RAMPS_V_1_2 #define HEATER_0_PIN 10 // RAMPS 1.1 #define HEATER_1_PIN 8 // RAMPS 1.1 #define ORIG_FAN_PIN 9 // RAMPS 1.1 #endif #define TEMP_0_PIN 2 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! #define TEMP_1_PIN 1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! #endif
Re: Repetier 0.92 Case Light Pin Menu bugy January 11, 2015 11:00AM |
Registered: 10 years ago Posts: 23 |
#if CASE_LIGHTS_PIN >= 0 SET_OUTPUT(CASE_LIGHTS_PIN); WRITE(CASE_LIGHTS_PIN, CASE_LIGHT_DEFAULT_ON); #endif // CASE_LIGHTS_PIN
#if CASE_LIGHTS_PIN > 0 case UI_ACTION_LIGHTS_ONOFF: TOGGLE(CASE_LIGHTS_PIN); UI_STATUS(UI_TEXT_LIGHTS_ONOFF); break; #endif where is that function TOGGLE(CASE_LIGHTS_PIN)?
Re: Repetier 0.92 Case Light Pin Menu bugy January 11, 2015 11:14AM |
Registered: 12 years ago Posts: 2,705 |
Re: Repetier 0.92 Case Light Pin Menu bugy January 11, 2015 11:16AM |
Registered: 10 years ago Posts: 23 |
Re: Repetier 0.92 Case Light Pin Menu bugy January 11, 2015 11:38AM |
Registered: 10 years ago Posts: 23 |
Re: Repetier 0.92 Case Light Pin Menu bugy January 11, 2015 11:49AM |
Registered: 11 years ago Posts: 296 |
Re: Repetier 0.92 Case Light Pin Menu bugy January 11, 2015 11:55AM |
Registered: 10 years ago Posts: 23 |
Re: Repetier 0.92 Case Light Pin Menu bugy January 11, 2015 12:58PM |
Registered: 10 years ago Posts: 23 |
Re: Repetier 0.92 Case Light Pin Menu bugy January 11, 2015 01:29PM |
Registered: 12 years ago Posts: 2,705 |
Re: Repetier 0.92 Case Light Pin Menu bugy January 11, 2015 02:04PM |
Registered: 10 years ago Posts: 23 |
Quote
Ok, I found the reason.
so you should better remove them from the configurator to avoid further frustration of other reprapersQuote
Didn't register until know that we have access to these pins externally:-)
Re: Repetier 0.92 Case Light Pin Menu bugy January 11, 2015 02:15PM |
Registered: 12 years ago Posts: 2,705 |
Re: Repetier 0.92 Case Light Pin Menu bugy January 12, 2016 07:10PM |
Registered: 10 years ago Posts: 56 |