Merge branch 'Marlin_v1' into thinkyhead

Conflicts:
	Marlin/Configuration.h
	Marlin/Configuration_adv.h
	Marlin/Marlin.h
	Marlin/Marlin_main.cpp
	Marlin/Servo.cpp
	Marlin/language.h
	Marlin/pins.h
	Marlin/planner.cpp
	Marlin/ultralcd_implementation_hitachi_HD44780.h
	README.md
This commit is contained in:
Erik van der Zalm
2013-06-09 22:26:47 +02:00
10 changed files with 437 additions and 157 deletions

View File

@ -13,7 +13,7 @@ extern volatile uint16_t buttons; //an extended version of the last checked but
#endif
////////////////////////////////////
// Setup button and encode mappings for each panel (into 'buttons' variable)
// Setup button and encode mappings for each panel (into 'buttons' variable
//
// This is just to map common functions (across different panels) onto the same
// macro name. The mapping is independent of whether the button is directly connected or
@ -180,6 +180,11 @@ extern volatile uint16_t buttons; //an extended version of the last checked but
#include <LiquidTWI2.h>
#define LCD_CLASS LiquidTWI2
LCD_CLASS lcd(LCD_I2C_ADDRESS);
#elif defined(LCD_I2C_TYPE_PCA8574)
#include <LiquidCrystal_I2C.h>
#define LCD_CLASS LiquidCrystal_I2C
LCD_CLASS lcd(LCD_I2C_ADDRESS, LCD_WIDTH, LCD_HEIGHT);
#else
// Standard directly connected LCD implementations
@ -305,6 +310,10 @@ static void lcd_implementation_init()
#elif defined(LCD_I2C_TYPE_MCP23008)
lcd.setMCPType(LTI_TYPE_MCP23008);
lcd.begin(LCD_WIDTH, LCD_HEIGHT);
#elif defined(LCD_I2C_TYPE_PCA8574)
lcd.init();
lcd.backlight();
#else
lcd.begin(LCD_WIDTH, LCD_HEIGHT);
@ -706,9 +715,9 @@ static void lcd_implementation_quick_feedback()
for(int8_t i=0;i<10;i++)
{
WRITE(BEEPER,HIGH);
delay(3);
delayMicroseconds(100);
WRITE(BEEPER,LOW);
delay(3);
delayMicroseconds(100);
}
#endif
}