Skip to content

Commit

Permalink
fixing chamber temperature
Browse files Browse the repository at this point in the history
  • Loading branch information
inib committed Oct 16, 2019
1 parent 44cee4f commit 3b2ece9
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 17 deletions.
6 changes: 3 additions & 3 deletions Marlin/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@
#define TEMP_SENSOR_5 0
//@
#define TEMP_SENSOR_BED 1
#define TEMP_SENSOR_CHAMBER 0
#define TEMP_SENSOR_CHAMBER 5

// Dummy thermistor constant temperature readings, for use with 998 and 999
#define DUMMY_THERMISTOR_998_VALUE 25
Expand Down Expand Up @@ -596,7 +596,7 @@

#define THERMAL_PROTECTION_HOTENDS // Enable thermal protection for all extruders
#define THERMAL_PROTECTION_BED // Enable thermal protection for the heated bed
#define THERMAL_PROTECTION_CHAMBER // Enable thermal protection for the heated chamber
//#define THERMAL_PROTECTION_CHAMBER // Enable thermal protection for the heated chamber

//===========================================================================
//============================= Mechanical Settings =========================
Expand Down Expand Up @@ -1127,7 +1127,7 @@
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
#define NUM_RUNOUT_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
#define FIL_RUNOUT_INVERTING false // Set to true to invert the logic of the sensor.
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
//#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown for filament runout pins.

// Set one or more commands to execute on filament runout.
Expand Down
2 changes: 1 addition & 1 deletion Marlin/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -2789,7 +2789,7 @@
/**
* M43 - display pin status, watch pins for changes, watch endstops & toggle LED, Z servo probe test, toggle pins
*/
//#define PINS_DEBUGGING
#define PINS_DEBUGGING

// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
6 changes: 3 additions & 3 deletions Marlin/src/HAL/HAL_STM32F1/HAL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const uint8_t adc_pins[] = {
#if HAS_HEATED_BED
TEMP_BED_PIN,
#endif
#if HAS_HEATED_CHAMBER
#if HAS_TEMP_CHAMBER
TEMP_CHAMBER_PIN,
#endif
#if HAS_TEMP_ADC_1
Expand Down Expand Up @@ -139,7 +139,7 @@ enum TEMP_PINS : char {
#if HAS_HEATED_BED
TEMP_BED,
#endif
#if HAS_HEATED_CHAMBER
#if HAS_TEMP_CHAMBER
TEMP_CHAMBER,
#endif
#if HAS_TEMP_ADC_1
Expand Down Expand Up @@ -322,7 +322,7 @@ void HAL_adc_start_conversion(const uint8_t adc_pin) {
#if HAS_HEATED_BED
case TEMP_BED_PIN: pin_index = TEMP_BED; break;
#endif
#if HAS_HEATED_CHAMBER
#if HAS_TEMP_CHAMBER
case TEMP_CHAMBER_PIN: pin_index = TEMP_CHAMBER; break;
#endif
#if HAS_TEMP_ADC_1
Expand Down
21 changes: 12 additions & 9 deletions Marlin/src/pins/stm32/pins_MKS_ROBIN_NANO.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,22 +74,25 @@
#define E0_STEP_PIN PD6
#define E0_DIR_PIN PD3

#define E1_ENABLE_PIN PA3
#define E1_STEP_PIN PA6
#define E1_DIR_PIN PA1
//#define E1_ENABLE_PIN PA3
//#define E1_STEP_PIN PA6
//#define E1_DIR_PIN PA1

//
// Temperature Sensors
//
#define TEMP_0_PIN PC1 // TH1
#define TEMP_1_PIN PC2 // TH2
#define TEMP_BED_PIN PC0 // TB1
#define TEMP_0_PIN PC1 // TH1
#define TEMP_CHAMBER_PIN PC2 // TH2

//#define TEMP_1_PIN PC2 // TH2

#define TEMP_BED_PIN PC0 // TB1

//
// Heaters / Fans
//
#define HEATER_0_PIN PC3 // HEATER1
#define HEATER_1_PIN PB0 // HEATER2
//#define HEATER_1_PIN PB0 // HEATER2
#define HEATER_BED_PIN PA0 // HOT BED

#define FAN_PIN PB1 // FAN
Expand Down Expand Up @@ -127,7 +130,7 @@
#define FSMC_CS_PIN PD7 // NE4
#define FSMC_RS_PIN PD11 // A0

#define LCD_USE_DMA_FSMC // DMA transfer to TFT?
#define LCD_USE_DMA_FSMC //
#define FSMC_DMA_DEV DMA2
#define FSMC_DMA_CHANNEL DMA_CH5

Expand All @@ -139,7 +142,7 @@
#if ENABLED(TOUCH_BUTTONS)
//@
#define TOUCH_CS_PIN PA7
#define TOUCH_SCK_PIN PB13 // ? complete SPI pins
#define TOUCH_SCK_PIN PB13
#define TOUCH_MOSI_PIN PB15
#define TOUCH_MISO_PIN PB14
#endif
Expand Down
4 changes: 3 additions & 1 deletion buildroot/share/PlatformIO/scripts/mks_robin_nano.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ def encrypt(source, target, env):
byte = firmware.read(1)
if position >= 320 and position < 31040:
byte = chr(ord(byte) ^ key[position & 31])
robin.write(byte)
robin.write(byte.encode('charmap'))
else:
robin.write(byte)
position += 1
finally:
firmware.close()
Expand Down

0 comments on commit 3b2ece9

Please sign in to comment.