Help with a 12864 RepRapDiscount Full Graphic Smart Controller December 31, 2015 01:54AM |
Registered: 8 years ago Posts: 5 |
#include "U8glib.h" #include "Configuration.h" #include "pins.h" #ifdef ULTRA_LCD #if defined(LCD_I2C_TYPE_PCF8575) #include "Wire.h" #include "LiquidCrystal_I2C.h" #elif defined(LCD_I2C_TYPE_MCP23017) || defined(LCD_I2C_TYPE_MCP23008) #include "Wire.h" #include "LiquidTWI2.h" #elif defined(DOGLCD) #include "U8glib.h" // library for graphics LCD by Oli Kraus (https://code.google.com/p/u8glib/) #else #include "LiquidCrystal.h" // library for character LCD #endif #endif #if HAS_DIGIPOTSS #include "SPI.h" #endif #if defined(DIGIPOT_I2C) #include "Wire.h" #endif
// @section lcd // Define your display language below. Replace (en) with your language code and uncomment. // en, pl, fr, de, es, ru, it, pt, pt-br, fi, an, nl, ca, eu, kana, kana_utf8, test // See also language.h #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en) // Choose ONE of these 3 charsets. This has to match your hardware. Ignored for full graphic display. // To find out what type you have - compile with (test) - upload - click to get the menu. You'll see two typical lines from the upper half of the charset. // See also documentation/LCDLanguageFont.md #define DISPLAY_CHARSET_HD44780_JAPAN // this is the most common hardware //#define DISPLAY_CHARSET_HD44780_WESTERN //#define DISPLAY_CHARSET_HD44780_CYRILLIC //LCD and SD support //#define ULTRA_LCD //general LCD support, also 16x2 //#define DOGLCD // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family) #define SDSUPPORT // Enable SD Card Support in Hardware Console //#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error) //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication #define ENCODER_PULSES_PER_STEP 4 // Increase if you have a high resolution encoder #define ENCODER_STEPS_PER_MENU_ITEM 1 // Set according to ENCODER_PULSES_PER_STEP or your liking //#define ULTIMAKERCONTROLLER //as available from the Ultimaker online store. //#define ULTIPANEL //the UltiPanel as on Thingiverse //#define LCD_FEEDBACK_FREQUENCY_HZ 1000 // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click // The MaKr3d Makr-Panel with graphic controller and SD support // [reprap.org] //#define MAKRPANEL // The RepRapDiscount Smart Controller (white PC // [reprap.org] //#define REPRAP_DISCOUNT_SMART_CONTROLLER // The GADGETS3D G3D LCD/SD Controller (blue PC // [reprap.org] //#define G3D_PANEL // The RepRapDiscount FULL GRAPHIC Smart Controller (quadratic white PC // [reprap.org] // // ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: [code.google.com] #define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER // The RepRapWorld REPRAPWORLD_KEYPAD v1.1 // [reprapworld.com] //#define REPRAPWORLD_KEYPAD //#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0 // how much should be moved when a key is pressed, eg 10.0 means 10mm per click // The Elefu RA Board Control Panel // [www.elefu.com] // REMEMBER TO INSTALL LiquidCrystal_I2C.h in your ARDUINO library folder: [github.com] //#define RA_CONTROL_PANEL //automatic expansion #if defined (MAKRPANEL) #define DOGLCD #define SDSUPPORT #define ULTIPANEL #define NEWPANEL #define DEFAULT_LCD_CONTRAST 17 #endif #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) #define DOGLCD #define U8GLIB_ST7920 #define REPRAP_DISCOUNT_SMART_CONTROLLER #endif #if defined(ULTIMAKERCONTROLLER) || defined(REPRAP_DISCOUNT_SMART_CONTROLLER) || defined(G3D_PANEL) #define ULTIPANEL #define NEWPANEL #endif #if defined(REPRAPWORLD_KEYPAD) #define NEWPANEL #define ULTIPANEL #endif #if defined(RA_CONTROL_PANEL) #define ULTIPANEL #define NEWPANEL #define LCD_I2C_TYPE_PCA8574 #define LCD_I2C_ADDRESS 0x27 // I2C Address of the port expander #endif //I2C PANELS //#define LCD_I2C_SAINSMART_YWROBOT #ifdef LCD_I2C_SAINSMART_YWROBOT // This uses the LiquidCrystal_I2C library ( [bitbucket.org] ) // Make sure it is placed in the Arduino libraries directory. #define LCD_I2C_TYPE_PCF8575 #define LCD_I2C_ADDRESS 0x27 // I2C Address of the port expander #define NEWPANEL #define ULTIPANEL #endif // PANELOLU2 LCD with status LEDs, separate encoder and click inputs //#define LCD_I2C_PANELOLU2 #ifdef LCD_I2C_PANELOLU2 // This uses the LiquidTWI2 library v1.2.3 or later ( [github.com] ) // Make sure the LiquidTWI2 directory is placed in the Arduino or Sketchbook libraries subdirectory. // (v1.2.3 no longer requires you to define PANELOLU in the LiquidTWI2.h library header file) // Note: The PANELOLU2 encoder click input can either be directly connected to a pin // (if BTN_ENC defined to != -1) or read through I2C (when BTN_ENC == -1). #define LCD_I2C_TYPE_MCP23017 #define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander #define LCD_USE_I2C_BUZZER //comment out to disable buzzer on LCD #define NEWPANEL #define ULTIPANEL #ifndef ENCODER_PULSES_PER_STEP #define ENCODER_PULSES_PER_STEP 4 #endif #ifndef ENCODER_STEPS_PER_MENU_ITEM #define ENCODER_STEPS_PER_MENU_ITEM 1 #endif #ifdef LCD_USE_I2C_BUZZER #define LCD_FEEDBACK_FREQUENCY_HZ 1000 #define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 #endif #endif // Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs //#define LCD_I2C_VIKI #ifdef LCD_I2C_VIKI // This uses the LiquidTWI2 library v1.2.3 or later ( [github.com] ) // Make sure the LiquidTWI2 directory is placed in the Arduino or Sketchbook libraries subdirectory. // Note: The pause/stop/resume LCD button pin should be connected to the Arduino // BTN_ENC pin (or set BTN_ENC to -1 if not used) #define LCD_I2C_TYPE_MCP23017 #define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander #define LCD_USE_I2C_BUZZER //comment out to disable buzzer on LCD (requires LiquidTWI2 v1.2.3 or later) #define NEWPANEL #define ULTIPANEL #endif // Shift register panels // --------------------- // 2 wire Non-latching LCD SR from: // [bitbucket.org] //#define SAV_3DLCD #ifdef SAV_3DLCD #define SR_LCD_2W_NL // Non latching 2 wire shiftregister #define NEWPANEL #define ULTIPANEL #endif #ifdef ULTIPANEL // #define NEWPANEL //enable this if you have a click-encoder panel #define SDSUPPORT #define ULTRA_LCD #ifdef DOGLCD // Change number of lines to match the DOG graphic display #define LCD_WIDTH 20 #define LCD_HEIGHT 5 #else #define LCD_WIDTH 20 #define LCD_HEIGHT 4 #endif #else //no panel but just LCD #ifdef ULTRA_LCD #ifdef DOGLCD // Change number of lines to match the 128x64 graphics display #define LCD_WIDTH 20 #define LCD_HEIGHT 5 #else #define LCD_WIDTH 16 #define LCD_HEIGHT 2 #endif #endif #endif // default LCD contrast for dogm-like LCD displays #ifdef DOGLCD # ifndef DEFAULT_LCD_CONTRAST # define DEFAULT_LCD_CONTRAST 32 # endif #endif
Re: Help with a 12864 RepRapDiscount Full Graphic Smart Controller January 01, 2016 04:33AM |
Registered: 8 years ago Posts: 5,232 |
Re: Help with a 12864 RepRapDiscount Full Graphic Smart Controller January 01, 2016 05:23PM |
Registered: 8 years ago Posts: 5 |
Re: Help with a 12864 RepRapDiscount Full Graphic Smart Controller January 09, 2016 07:41PM |
Registered: 8 years ago Posts: 2 |
Re: Help with a 12864 RepRapDiscount Full Graphic Smart Controller January 11, 2016 11:15AM |
Registered: 9 years ago Posts: 590 |
Re: Help with a 12864 RepRapDiscount Full Graphic Smart Controller March 07, 2016 07:33PM |
Registered: 8 years ago Posts: 2 |
Re: Help with a 12864 RepRapDiscount Full Graphic Smart Controller March 08, 2016 03:15AM |
Registered: 8 years ago Posts: 5,232 |
Re: Help with a 12864 RepRapDiscount Full Graphic Smart Controller May 23, 2016 09:56PM |
Registered: 7 years ago Posts: 1 |
Re: Help with a 12864 RepRapDiscount Full Graphic Smart Controller May 24, 2016 01:20AM |
Registered: 10 years ago Posts: 14,672 |