Skip to content

Commit

Permalink
increase print move cache, attempt i2c init tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jay committed Oct 19, 2015
1 parent 66b3635 commit e6f472b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/ArduinoAVR/Repetier/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ Overridden if EEPROM activated.
This number of moves can be cached in advance. If you wan't to cache more, increase this. Especially on
many very short moves the cache may go empty. The minimum value is 5.
*/
#define PRINTLINE_CACHE_SIZE 16
#define PRINTLINE_CACHE_SIZE 20

/** \brief Low filled cache size.
Expand Down Expand Up @@ -1486,7 +1486,7 @@ computations, so do not enable it if your display works stable!
//#define TRY_AUTOREPAIR_LCD_ERRORS

// This is line 2 of the status display at startup. Change to your like.
#define UI_PRINTER_NAME "DreamMaker Overlord Pro"
#define UI_PRINTER_NAME "Overlord Pro"
#define UI_PRINTER_COMPANY "DFRobot"


Expand All @@ -1497,7 +1497,7 @@ computations, so do not enable it if your display works stable!
#define UI_PAGES_DURATION 4000

/** Delay of start screen in milliseconds */
#define UI_START_SCREEN_DELAY 15000
#define UI_START_SCREEN_DELAY 1000
/** Uncomment if you don't want automatic page switching. You can still switch the
info pages with next/previous button/click-encoder */
#define UI_DISABLE_AUTO_PAGESWITCH 1
Expand Down
Binary file modified src/ArduinoAVR/Repetier/Repetier-OLP.v12.suo
Binary file not shown.
3 changes: 3 additions & 0 deletions src/ArduinoAVR/Repetier/u8glib_ex.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/* comment the following line to generate more compact but interrupt unsafe code */
#define U8G_INTERRUPT_SAFE 1

// explicit defines for ease of debug, not necessary
#define ARDUINO 10605
#define __AVR__

#include <stddef.h>

Expand Down
4 changes: 2 additions & 2 deletions src/ArduinoAVR/Repetier/ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ void initializeLCD()
u8g_InitSPI(&u8g,&u8g_dev_ssd1306_128x64_sw_spi, UI_DISPLAY_D4_PIN, UI_DISPLAY_ENABLE_PIN, UI_DISPLAY_RS_PIN, U8G_PIN_NONE, U8G_PIN_NONE);
#endif
#ifdef U8GLIB_SSD1309_I2C
u8g_InitI2C(&u8g,&u8g_dev_ssd1309_128x64_i2c,U8G_I2C_OPT_NO_ACK);
u8g_InitI2C(&u8g,&u8g_dev_ssd1309_128x64_i2c,U8G_I2C_OPT_DEV_0 & U8G_I2C_OPT_NO_ACK & U8G_I2C_OPT_FAST);
#endif
#ifdef U8GLIB_KS0108_FAST
u8g_Init8Bit(&u8g,&u8g_dev_ks0108_128x64_fast,UI_DISPLAY_D0_PIN,UI_DISPLAY_D1_PIN,UI_DISPLAY_D2_PIN,UI_DISPLAY_D3_PIN,UI_DISPLAY_D4_PIN,UI_DISPLAY_D5_PIN,UI_DISPLAY_D6_PIN,UI_DISPLAY_D7_PIN,UI_DISPLAY_ENABLE_PIN,UI_DISPLAY_CS1,UI_DISPLAY_CS2,
Expand Down Expand Up @@ -891,7 +891,7 @@ void UIDisplay::initialize()
#if defined(USER_KEY4_PIN) && USER_KEY4_PIN > -1
UI_KEYS_INIT_BUTTON_LOW(USER_KEY4_PIN);
#endif
#if UI_DISPLAY_TYPE == DISPLAY_I2C
#if UI_DISPLAY_TYPE == DISPLAY_I2C
// I don't know why but after power up the lcd does not come up
// but if I reinitialize i2c and the lcd again here it works.
HAL::delayMilliseconds(10);
Expand Down

0 comments on commit e6f472b

Please sign in to comment.